-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to create a remote debugging session? #29
Comments
Yep. If you save a config it will generate a The parameters are listed at the end of the package readme/info, but an example may look something like: (indentation is important) "remote debug":
debugger: "dbg-gdb"
gdb_executable: "/usr/bin/arm-none-eabi-gdb"
gdb_commands: ["source path_to_gdbinit"] You'd then push F5 and select "remote debug" to run that config. You can also include multiple commands rather than bundling in a gdbinit if more convenient: gdb_commands: ["foo", "bar", "baz"] There's also Configs are named, so you can have as many as you want. If you save a configuration with the gui it will non-destructively append it to the end of the file. When you save changes the additions will become available immediately via F5. |
Thank you for your response. Since my I added following cson file to the project root:
and pressed F5, selected "remote debug". Debugger navigation buttons appeared: ...but nothing more. No errors, no result. Looking my gdb server, there is no evidence of connection: White section is gdb-server output (left) when I connect with |
Hmm.. It should just be literally forwarding those commands on to gdb. So if they're the correct commands it should work (I don't have a lot of experience with remote debugging I'm afraid). If you view package settings for gdb-dbg there's an option to log output to the developer console, turn that on and enable the dev console in atom and you'll see the communication. Hopefully that helps narrow the problem. |
Oh, ouch! That's a bug! Are you by any chance running an old version of Atom? Looks like I used a method added around Atom v1.19 (or somewhere around there) but didn't set the version requirements appropriately. Sorry. Updating atom should make it work. |
Before I update the atom, do you want to add appropriate error message which I can confirm? Edit: I created a snapshot of my system, I may make the error message confirmation at any time. |
Ahh, whoops. I need to add an option to disable the run command when remote debugging. This will be fixed in the next update which will hopefully be this weekend. Sorry about that. I know what the error is from before, so no need for the snapshot. But thanks for the help! Both will be fixed in the next version. Cheers! |
How's the progress on this going? I'm trying to remote debug and am getting the same "Don't know how to run..." error. I'm trying to connect to an openocd server. Here is my "Base-Debug/stm32f042f4px-daplie.elf":
debugger: "dbg-gdb"
gdb_executable: "/usr/bin/arm-none-eabi-gdb"
gdb_commands: [
"target remote :3333"
"set print asm-demangle on"
"monitor arm semihosting enable"
"load"
"step"
]
path: "Base-Debug/stm32f042f4px-daplie.elf"
cwd: "." |
@creationix You may want to take a look at mcu-debug, the command line debugging tool for STM microcontrollers untill this issue is solved. |
For remote debugging, here is the solution: At lines 181 - 204 we have:
Remove or comment (with #) these lines It seems that the maintainer of the debug packages is out |
Is it possible to create a remote debugging session? If so, where do we assign
/usr/bin/arm-none-eabi-gdb
in my caseThe text was updated successfully, but these errors were encountered: