# How to debug in Version 4?

**URL:** <https://forum.dynare.org/t/how-to-debug-in-version-4/761>\
**Category:** Dynare v4 (legacy)\
**Created:** [25 July 2008 18:05 UTC](https://forum.dynare.org/t/how-to-debug-in-version-4/761 "2008-07-25T18:05:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![measilva](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@measilva](https://forum.dynare.org/u/measilva)\
**Post date:** [25 July 2008 18:05 UTC](https://forum.dynare.org/t/how-to-debug-in-version-4/761/1 "2008-07-25T18:05:30Z")

</div>

Does anyone know a trick to debug in version 4?

I keep getting a error message “syntax error, unexpected COMMA, expecting EQUAL” after a run my code. What I want is to see in which line of the code the problem is exactly.

Even when I get rid off of all COMMA’s in my mod file, I still get this message.

P.S.: when I run the same code in version 3 and it works perfectly.

Any thoughts will be appreciated.

---

<div class="post-metadata">

**Author:** ![sebastien](https://forum.dynare.org/user_avatar/forum.dynare.org/sebastien/32/19973_2.png) [@sebastien](https://forum.dynare.org/u/sebastien)\
**Post date:** [28 July 2008 21:29 UTC](https://forum.dynare.org/t/how-to-debug-in-version-4/761/2 "2008-07-28T21:29:47Z")

</div>

Hi,

Just before the error message, you should have an indication of the line and column numbers where the error was triggered.

It is something of the form: “x.y-z” where x is the line number, y and z are column numbers indicating the beginning and the end of the faulty piece of code.

Best

Sébastien

---

<div class="post-metadata">

**Author:** ![measilva](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@measilva](https://forum.dynare.org/u/measilva)\
**Post date:** [28 July 2008 22:03 UTC](https://forum.dynare.org/t/how-to-debug-in-version-4/761/3 "2008-07-28T22:03:56Z")

</div>

Hi Sébastien,

Thanks a lot for your help.

Best  
Marcelo

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [24 July 2017 13:30 UTC](https://forum.dynare.org/t/how-to-debug-in-version-4/761/4 "2017-07-24T13:30:39Z")

</div>

Closed on 24 July 2017 13:30 UTC


