Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Upp and VisualStudio (Howto open Upp project in Visual Studio)
Re: Upp and VisualStudio [message #55448 is a reply to message #55444] Wed, 11 November 2020 16:37 Go to previous messageGo to previous message
peterh is currently offline  peterh
Messages: 108
Registered: November 2018
Location: Germany
Experienced Member
If I type "devenv /debugexe hello.exe" from a console, then a new instance of devenv is invoked.
I dont know how TheIDE does it, if it opens a new instance of visual studio I would anyway not use it.

First I start Visual Studio (devenv.exe) and import the pdb file. So I have all symbols and sources loaded before I debug.
My program starts like this:
GUI_APP_MAIN
{   
	for(;!IsDebuggerPresent();) Sleep(10); // Wait for debugger to attach
        DebugBreak();                          // Stop at next line
	
	SetLanguage(LNG_ENGLISH);              // <- Program is here after Debugger was attached
	HelloWorld().Run();
}

Then I start hello.exe and choose "debug" in taskmanager to attach it to the debugger.
This said, in most cases I use TheIDE standalone.
I intend to use VS only to view inheritance trees, search references to procedures , find implementation of operators, refactoring and more stuff what it can do or can do faster.
Mainly to analyze and understand unknown programs, not so much for selfwritten stuff.
For debugging it has an advantage, it can start and stop threads, in some rare cases this might help.

[Updated on: Wed, 11 November 2020 17:53]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: My little project
Next Topic: What Q means in QTF shortcut?
Goto Forum:
  


Current Time: Tue May 07 16:57:46 CEST 2024

Total time taken to generate the page: 0.02103 seconds