www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - How do I debug externally with Visual Studio?

reply solidstate1991 <laszloszeremi outlook.com> writes:
I use VSCode since it has better D support, however until I make 
mago-mi usable (it doesn't even support all the commands 
currently it claims, --args seems to be completely broken) or 
find again a working copy of LLDB for Windows (doesn't want to 
compile with Mingw also being installed), I cannot really debug.

The only way I can debug programs is to attach to them after they 
have started, however it's very clunky to use this way, some 
programs even execute too fast to do this way.
Oct 20 2018
parent reply kinke <noone nowhere.com> writes:
On Sunday, 21 October 2018 at 02:12:18 UTC, solidstate1991 wrote:
 The only way I can debug programs is to attach to them after 
 they have started, however it's very clunky to use this way, 
 some programs even execute too fast to do this way.
* Install VisualD (for mago). * Open/create a project (any C++ project will do) in VS, right-click -> Properties, then set the command line in the 'Debugging' settings. * Right-click on the project again, Debug -> Start new instance. Make sure to use the config/platform for which you set the debugging command line.
Oct 21 2018
parent nirmal <nirmal63637 gmail.com> writes:
On Sunday, 21 October 2018 at 16:27:24 UTC, kinke wrote:
 On Sunday, 21 October 2018 at 02:12:18 UTC, solidstate1991 
 wrote:
 The only way I can debug programs is to attach to them after 
 they have started, however it's very clunky to use this way, 
 some programs even execute too fast to do this way.
* Install VisualD (for mago). * Open/create a project (any C++ project will do) in VS, right-click -> Properties, then set the command line in the 'Debugging' settings. * Right-click on the project again, Debug -> Start new instance. Make sure to use the config/platform for which you set the debugging command line.
I have IVF composer XE 2011 with VS2005. I have a DLL library that is used by a third-party application. I copy.DLL to the specified folder where the program is looking for it. The application finds DLL OK. I want to set up a DLL - how to run an application with a debugged DLL library and get the added VS debugger so that it can log into the DLL where I want to do it? know more at: https://www.outlooktechnicalsupportnumbers.com/blog/gmail-server-error/
Oct 24 2018