I'm working with a legacy embedded debugging tool and it's frustrating to work with. I just found out however that it can be automated in many ways, such at setting breakpoints on start up.
Since I use eclipse cdt as my development environment, I was wondering if I could write an eclipse plugin that reads all my breakpoints so I can generate a script in my debugging tools proprietary language and then launch the debugger. This way I can set breakpoints in eclipse and have them load up in my debugger when ever I need them.
Right-click in the breakpoint view and select "Export breakpoints..."
Related
I have a managed project (.net 4.6.2) which calls into a native dll. If I put a breakpoint in the native code, it hits it, but if I try to inspect stack variables I get a rather annoying
Inspection of unmanaged type 'MyTypeInHere*' requires unmanaged
debugging to be enabled. Please set the debugger type to 'Mixed' and
try again
I followed steps from https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-debug-managed-and-native-code?view=vs-2019, Debugging unmanaged code while debugging managed code but I still cannot inspect types.
In the managed project properties, under debug I've enabled enable native code debugging and under the build page I've checked allow unsafe code. Further in launchSettings.json, I have "nativeDebugging": true
Also note that in the native project property settings I've set the Debugger type to mixed.
Does anybody know what's preventing me debugging native code?
Thanks
Does anybody know what's preventing me debugging native code?
It is quite strange and I followed the sample which your link provided and it works well. In fact, all the steps are just the rule.
So please check these:
1) Please make sure that your c++ project is using Active(Debug) Configuration and x64 platform. When you change Debugger type to mixed and then click Apply, please remember to rebuild the project.
2) when you reference the native code into C# project, please close the VS Instance, delete obj,bin,.vs hidden folder and then reopen your c# project. After that, please make sure that you check Enable Native Code debugging, then rebuild the entire solution.
3) Add breakpoints where you want to break and begin stepping through the code. Make sure your have placed your breakpoints in code which the C# application calls into.
4) change the target gramework to 4.7.2 to test again.
5) Please try to create a new net framework 4.7.2 c# project to test whether the issue is caused by the old project.
In addition, if all the steps does not work, please do a repair in VS Installer.
I'm using Eclipse IDE for debugging a code with an STM32 microcontroller, and looking for a way to simulate the MCU board and not need to connect and use the actual micrcontroller, it is very helpful to run simple codes and testing.
I was using IAREW before and it is possible, it has an option for a simulator driver in the debugging tool and you can run and see the results normally as if the board is connected; i was wondering if it is also possible with Eclipse?
In the Eclipse Debugger -> Debug probe, there are only 3 options which are ST-Link(GDB), J-Link and ST-LINK(Open-OCD); i'm new to Eclipse and couldn't figure out if it could be possible somehow by modifying something with one of those options.
Update:
I have found a kind of a solution, to add an extension to include the IAR EW debugger inside eclipse:
http://eclipse-update.iar.com/plugin-manager-install.html
It is not a good solution as both IDEs need to be installed, and the project need to be created specifically for IAR to use its simulator, so it is not possible to create an STM32 project and use the IAR simulator for debugging.
Are there other solutions within eclipse, without using another IDE or an extesion?
I am creating a visual effects plug-in using OpenFX.
I have followed the programming guides from the official documentation.
However, I didn't find anything relating to debugging of OpenFX plugins.
I am looking for some specific methods for debugging my plug-in. I am currently using Natron / DaVinci Resolve as host applications.
Currently I have tried (I am running on Mac) to ``Attach to process'' via lldb or Xcode to e.g. DaVinci Resolve. Both results in an error or lost connection.
It depends on your IDE. With Visual Studio, for example, in your Solution used to build your plug-in you can set the "executable to run" as the host application. Then when you debug your plug-in, it will launch the host application under the debugger. Once the host has loaded your plug-in, your breakpoints become active (and new ones can be set) and will be hit when the host makes calls into your plug-in. You'll get source level debugging for your plug-in, but unless you have symbols the host items in the stack trace will just be hex.
Edit: I just noticed you said you're on a Mac. In Xcode, edit your Scheme. In Run/Debug you can set the Executable. As above, pick the host application. When you tell Xcode to "Run" your plug-in, it should launch the host.
I have been looking for a solution for hours. I have QTC 5, Mingw and Gdb under Windows7. I can compile and run my project however I have not been able to figure out how to debug and create a debug configuration in QT 5 under Windows. Bear in mind that everything works as it should in this IDE. I am happy with it just that I have not been able to figure out debugging with this particular configuration.
Most tutorials were concerned with CDB or Qt project or in other platforms, or were talking about some tabs or menus that are not available in v5 as far as I can tell.
What is the right way of setting up a debug configuration and running my .exe in a debug environment using QT 5 and Gdb? My project is mostly C and some C++ with no Qt component. I am just using it as an IDE for C/C++.
thanks
I'm currently using Eclipse as my main editor, and source browser for our C/C++ project. The only problem is, I have to switch to Visual C++ everytime I have to debug or trace. Is there a way to have Eclipse use the WinDbg tool to debug Windows native applications? I tried searching on the web but all the forum posts seem to trail off to nowhere around 2007/2008.
I think the answer is no. Because you will not have access to the Win Debug Symbols and libraries within the Eclipse runtime. However you could start building this as an Eclipse plugin for VS users.