eclipse-cdt-cloud / cdt-gdb-adapter

CDT GDB Debug Adapter
Eclipse Public License 2.0
28 stars 40 forks source link

Support Debug Console interacting directly with GDB #263

Closed trongle0504 closed 1 year ago

trongle0504 commented 1 year ago

This change adds the ability to interact with GDB directly in the debug console of VSCode by providing a way to bypass the normal expression evaluation and sending commands to the GDB console input.

To display the value of an expression, type that expression which can reference variables that are in scope. For example type 2 + 3 or the name of a variable. Arbitrary commands can be sent to GDB by prefixing the input with a >, for example type >show version or >help.

trongle0504 commented 1 year ago

Hi @jonahgraham, I have added some code to support sending GDB commands on CLI as your suggestion before. Could you please help me review it? Thank you!

trongle0504 commented 1 year ago

Hi @jonahgraham, I have some updates as your suggestion. The unit test also passed in my fork. Could you please help me review it again? Thank you!

jonahgraham commented 1 year ago

I have added an additional commit 0afeb61 to show the user some help when they startup. Can you please confirm this looks ok:

I have split this out into #266

trongle0504 commented 1 year ago

I have added an additional commit 0afeb61 to show the user some help when they startup. Can you please confirm this looks ok:

I have split this out into #266

I got it. I think that your changes are very helpful.

jonahgraham commented 1 year ago

Last part of this is writing a concise commit message - I have done that this time and updated the PR summary.

Once the PR passes CI this can be submitted.

jonahgraham commented 1 year ago

Thanks @trongle0504 for the new feature.