Debug stop dbstop in Matlab Dynare

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Debug stop dbstop in Matlab Dynare

Postby perendia » Thu May 25, 2006 9:29 pm

when I set debug stops before running Matlab>dynare modfile.mod or Matlab>modfile.m, they get cleard and no debug-stop occur. Debug stop works on single files but not when calling Matlab>dynare modfile.mod or Matlab>modfile.m (where modfile is just a model file name). How can I set a dbstop in dynare?
perendia
 
Posts: 4
Joined: Fri Feb 24, 2006 2:07 pm

Postby MichelJuillard » Fri May 26, 2006 9:48 am

The parser normally writes a "clear all" at the top of every modfile.mod. This "clear all" resets part of the debug instructions.

In order to avoid it, do

dynare modfile noclearall

instead of

dynare modfile

but be careful of inherited global variables from previous because the memory isn't cleared anymore. If you need to you can do clear all before the dbstop command

Kind regards

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests