Old 31st July 2002, 17:19   #1
Black_End
Junior Member
 
Join Date: Jul 2002
Posts: 4
Debugging Installations

Hi,
I would like to add some features to NSIS and in order to-do that I need to debug the Installation the actual exehead. Does someone found a way todo so?

-BlackEnd
Black_End is offline   Reply With Quote
Old 31st July 2002, 17:32   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Debug version of NSIS never compiled right. You have two options, first is to make the debug version compile, second is to just use message boxes.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 1st August 2002, 07:24   #3
Black_End
Junior Member
 
Join Date: Jul 2002
Posts: 4
What's the Debug Version The Project compiled in Debug Mode? it compiles well for me. I think that the best way to debug will be warp all exehead in a DLL, so that the Installation will only load the dll and pass the data to it. That way it will be easy to debug the actual installation. Has some one done it?, how the hell Justin debug it?
Black_End is offline   Reply With Quote
Old 1st August 2002, 07:26   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
By debug version I mean that the project is compiled in debug mode, yes.

Personally, I just use MessageBoxes... No need for fancy shmensy debuging tools. I have no idea how Justin does it.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 1st August 2002, 07:36   #5
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
You could use the OutputDebugString command and capture the output using the DebugView tool.
Sunjammer is offline   Reply With Quote
Old 1st August 2002, 07:39   #6
Black_End
Junior Member
 
Join Date: Jul 2002
Posts: 4
MessageBox, OutputDebugString, I'm going to implement the DLL debugging. Not having the ability to proper debug the installation engine will not get it too far...
Black_End is offline   Reply With Quote
Old 1st August 2002, 07:41   #7
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
However remember that OutputDebugString has many advantages in some situations over actually using the debugger. It doesn't screw up timing, threads still run while you see what's going on, and many others. All I'm saying is don't dismiss OutputDebugString so easily
Sunjammer is offline   Reply With Quote
Old 1st August 2002, 08:52   #8
Black_End
Junior Member
 
Join Date: Jul 2002
Posts: 4
OutputDebugString does a context switch, those "Screwing" your thread timing...
Black_End is offline   Reply With Quote
Old 1st August 2002, 08:56   #9
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
Sorry I was meaning large scale (i.e. human terms like seconds) level timing is screwed by halting in a debugger when u can just watch OutputDebugString info, and secondly the only way I can see what is going on with multiple threads of execution running (that aren't highly sensitive to small timing issues like a context switch) is using logged output rather than a debugger.

Anyway nuff said, it was just a suggestion
Sunjammer is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump