The Apache Haus Forum

Forum Topics => Apache 2.2 => Topic started by: JD on March 13, 2018, 04:33:50 AM

Title: Debugging CGI app with Visual Studio 2017
Post by: JD on March 13, 2018, 04:33:50 AM
Hi,
Is it possible to debug CGI exe file build with Visual Studio 2017 with the Visual Studio 2017 debugger ?
Regards,
Janusz
Title: Re: Debugging CGI app with Visual Studio 2017
Post by: mario on March 13, 2018, 01:57:59 PM
You can, if you compile the exe in debug mode and run it on the same pc you habe VS2017 on. It might be easier to have debug outputs instead of going through the way with the IDE.

What is the issue that you are having with your app?
Title: Re: Debugging CGI app with Visual Studio 2017
Post by: JD on March 14, 2018, 12:15:07 AM
Thanks Mario.
I am not trying to resolve right now any problems, but I though it would be good to know for the future how to do it.
I am not quite clear if I understand your suggestion. The CGI program is called at run-time on demand, so how would I attach my VC debugger at the time I call it from browser and set for example the breakpoint?
Regards,
Janusz
Title: Re: Debugging CGI app with Visual Studio 2017
Post by: mario on March 15, 2018, 10:12:51 PM
I haven't done such a thing with a remotely triggered app. But it should be possible to set break points. Last time I've done that was with VS6 :D
Title: Re: Debugging CGI app with Visual Studio 2017
Post by: Gregg on March 16, 2018, 12:03:14 AM
Visual Studio has a remote debugging tool but I'm not sure it's freely available. MSDN subscribers can get it and if you paid for VS it probably came with it off the shelf. As for how to use it I don't know since I never have.