# Howto debug source code without compilation?

**URL:** <https://discuss.ocaml.org/t/howto-debug-source-code-without-compilation/3106>\
**Category:** Learning\
**Tags:** debugging, ocamldebug\
**Created:** [December 27, 2018, 5:57pm UTC](https://discuss.ocaml.org/t/howto-debug-source-code-without-compilation/3106 "2018-12-27T17:57:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogerT](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@RogerT](https://discuss.ocaml.org/u/RogerT)\
**Post date:** [December 27, 2018, 5:57pm UTC](https://discuss.ocaml.org/t/howto-debug-source-code-without-compilation/3106/1 "2018-12-27T17:57:06Z")

</div>

Can you present how you debug your OCaml programs?  
Except with ocamldebug that requires to compile with -g option.

Is there a way to do it simply with source code?

I used to work with Matlab which has some good debugging tools, with presentation of any computed values, etc.  
It was straightforward and pleasant to use
