Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoints not hit when using libraries in sub-folders #11

Open
varunpatro opened this issue Jan 8, 2019 · 3 comments
Open

Breakpoints not hit when using libraries in sub-folders #11

varunpatro opened this issue Jan 8, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@varunpatro
Copy link

Here's my folder structure:

bin/main.m 
lib/a.ml
lib/b.ml

I'm using dune to build an executable in the bin/ folder and a library in the lib/ folder.

When I use vscode to debug, I'm able to set breakpoints in the bin/main.ml and when the program starts, it pauses at those breakpoints. However, if I set breakpoints in the lib/a.ml file, the program doesn't pause when it reaches the line in lib/a.ml.

However, when I set a breakpoint in bin/main.ml and debug, if I use the debug controls such as step-over, i am able to reach the lines in lib/a.ml but setting breakpoints in lib/a.ml still doesn't work.

@varunpatro varunpatro changed the title Breakpoints not hit when using other libraries Breakpoints not hit when using libraries in sub-folders Jan 8, 2019
@hackwaly
Copy link
Owner

hackwaly commented Jan 9, 2019

Try add dotMerlins config option to launch configuration. Don't forget add the one in subfolder. There's example in README.md

@SteveBronder
Copy link

It's telling me for dotMerlins "Property dotMerlins" is not allowed"

Info on version I installed from vscode below. Is there a more up to date version I should be using?

Name: OCaml Debugger
Id: hackwaly.ocaml-debugger
Description: OCaml debugger.
Version: 0.1.2
Publisher: hackwaly
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=hackwaly.ocaml-debugger

@victorvianna
Copy link

@sim642 sim642 added the bug Something isn't working label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants