[TRNSYS-users] TRNSYS debug-mode and Visual Studio 2010

Currie, Sam R scurrie at purdue.edu
Wed Jun 12 14:07:19 PDT 2013

Hi Florian,

I'm not familiar with the previous email you mentioned, so maybe if you could provide some more info on the convergence error it would help us give you specific advice.

Anyways, you shouldn't have to recompile any other types besides the one you are creating. In general, I always create both release and debug .dll files just to be safe. In Simulation Studio you can switch into Debug mode through the control cards and that should give you plenty of information in the lst file to track the error down. 

I believe there is a way to step through the simulation similar to stepping through code in VS although I'm not sure how, anyone want to weigh in here?

Sam Currie
Purdue University

-----Original Message-----
From: Schreiner, Florian [mailto:florian.schreiner2 at student.kit.edu] 
Sent: Wednesday, June 12, 2013 3:25 PM
To: trnsys-users at cae.wisc.edu
Subject: [TRNSYS-users] TRNSYS debug-mode and Visual Studio 2010

Dear TRNSYS Users,

I still have some convergence problems with my new type as already mentioned in a previous Email.
But I need to finish this type as soon as possible to be able to finish my diploma thesis. 

Therefore I would like to debug the created deck (including the new type) which causes the problems. 
Maybe I'm able to find and solve the problem hereby.
I'm using Visual Studio 2010 and up to now I compiled the type in the release-mode and tested it in TRNSYS.
But until know, I wasn't able to find the problems in this way. 
I guess to be able to debug the simulation I need to compile the type in the debug-mode. 
But how can I start debugging in TRNSYS or in other words, how can I use TRNSYS and  Visual Studio in the debug-mode? Is it necessary to compile all types of the simulation in debug-mode  to be able to debug or is it sufficient to compile only my type in the debug-mode?
Since I need this type urgently, I would by very happy if someone could help me.  
Thanks in advance!

Best regards,

More information about the TRNSYS-users mailing list