You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, as config value with the default of ["gdb-set target-async on", "environment-directory \"$(cwd)\"", "target-select remote $(target)"]. For the variables just use a simple replace and only allow cwd and target for now. If you find other good candidates for variables, you are free to implement them as well though
And yes you need them both in the package.json as well as in the js code by checking for undefined. The package.json default one is the auto completion the user will receive, your code needs to have a value that will replace the value
Are there any plans to integrate this into master? @Gaswigue Are you now able to directly debug RX processors out of vs-code? I'm trying to get this running for days now.
Just moving to vscode and am blown away by all the features.
This extension is excellent, and I appreciate all the work to make it happen!
My old debugger worked in non-stop mode, and it would be great if we could not only have that mode, but have it be optional!
I see the patch has been around for a while, is there a reason it's not in master?
Or is there a way to use a .gdbinit file as a workaround?
Thanks again!
Or is there a way to use a .gdbinit file as a workaround?
Yes, if your setup uses a .gdbinit file (depend on the GDB configuration, commonly "in the folder", "in home folder" in system folder) then this will still be used.
You can also explicit request a "pre-connection script loading" by adding "debugger_args": ["-ix", "yourscript"] to the launch configuration.
Activity
WebFreak001 commentedon Mar 5, 2017
Hm making those commands more configurable sounds like a good idea
Gaswigue commentedon Mar 6, 2017
I can code this feature if needed. But how do you want I implement it ? the "before-connection-autorun" argument is good for you ?
WebFreak001 commentedon Mar 6, 2017
Yes, as config value with the default of
["gdb-set target-async on", "environment-directory \"$(cwd)\"", "target-select remote $(target)"]. For the variables just use a simple replace and only allow cwd and target for now. If you find other good candidates for variables, you are free to implement them as well thoughRun gdb commands before connection WebFreak001#97
WebFreak001 commentedon Mar 8, 2017
if you include them in the package.json you need to escape the string like this I think: https://github.com/WebFreak001/code-debug/blob/master/package.json#L305
WebFreak001 commentedon Mar 8, 2017
And yes you need them both in the package.json as well as in the js code by checking for undefined. The package.json default one is the auto completion the user will receive, your code needs to have a value that will replace the value
Run gdb commands before connection WebFreak001#97
spir6s commentedon Jan 7, 2019
Are there any plans to integrate this into master?
@Gaswigue Are you now able to directly debug RX processors out of vs-code? I'm trying to get this running for days now.
dlshutch commentedon Aug 1, 2020
Just moving to vscode and am blown away by all the features.
This extension is excellent, and I appreciate all the work to make it happen!
My old debugger worked in non-stop mode, and it would be great if we could not only have that mode, but have it be optional!
I see the patch has been around for a while, is there a reason it's not in master?
Or is there a way to use a .gdbinit file as a workaround?
Thanks again!
GitMensch commentedon Mar 7, 2022
Yes, if your setup uses a .gdbinit file (depend on the GDB configuration, commonly "in the folder", "in home folder" in system folder) then this will still be used.
You can also explicit request a "pre-connection script loading" by adding
"debugger_args": ["-ix", "yourscript"]to the launch configuration.