I'm trying to debug a remote C++ application using.
My setup is two machines (1) remote
(where the c++ application and gdbserver
runs) and (2) dev
where I like to debug from and where the source code is accessable.
Important: The remote
doesn't contain the source code (And I can't add it to the remote
).
The only please I have seen referring to this kind of setup is here using the monitor
command. But I wasn't able to make sense of it.
gdb
on dev
can I debug the application with source code support?The remote doesn't contain the source code
That is the usual setup.
The only please I have seen referring to this kind of setup is here using the monitor command.
Please correct your grammar, and note that the monitor
command should only be used under rare circumstances, and likely has nothing to do with your problem.
Is it possible to have the source code on one machine and the application running on the other?
Yes. That is how remote debugging usually works.
Using gdb on dev can I debug the application with source code support?
Yes. That is exactly what remote debugging is. It just works.
Can it be achieved via vscode?
Probably , but I don't know much about vscode
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.