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

always terminated when start debug #41

Open
echogqq opened this issue Aug 13, 2022 · 1 comment
Open

always terminated when start debug #41

echogqq opened this issue Aug 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@echogqq
Copy link

echogqq commented Aug 13, 2022

ocaml-compiler:4.12.0
learlybird:1.1.0

when I start debug, It always stop at some lib function exception. The I add breakpoints at the main function. Press continue(or step in, stop over), the debugger stopped. here is the log:

ocamlearlybird: [DEBUG] Message recv -- {"command":"setBreakpoints","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"lines":[59,60],"breakpoints":[{"line":59},{"line":60}],"sourceModified":false},"type":"request","seq":43}
ocamlearlybird: [DEBUG] Message sent -- {"seq":86,"type":"response","request_seq":43,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":false},{"id":3,"verified":false}]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":59},"type":"request","seq":44}
ocamlearlybird: [DEBUG] Message sent -- {"seq":88,"type":"response","request_seq":44,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":60},"type":"request","seq":45}
ocamlearlybird: [DEBUG] Message sent -- {"seq":90,"type":"response","request_seq":45,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":61},"type":"request","seq":46}
ocamlearlybird: [DEBUG] Message sent -- {"seq":92,"type":"response","request_seq":46,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":63},"type":"request","seq":47}
ocamlearlybird: [DEBUG] Message sent -- {"seq":94,"type":"response","request_seq":47,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":64},"type":"request","seq":48}
ocamlearlybird: [DEBUG] Message sent -- {"seq":96,"type":"response","request_seq":48,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":65},"type":"request","seq":49}
ocamlearlybird: [DEBUG] Message sent -- {"seq":98,"type":"response","request_seq":49,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":59},"type":"request","seq":50}
ocamlearlybird: [DEBUG] Message sent -- {"seq":100,"type":"response","request_seq":50,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":60},"type":"request","seq":51}
ocamlearlybird: [DEBUG] Message sent -- {"seq":102,"type":"response","request_seq":51,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":61},"type":"request","seq":52}
ocamlearlybird: [DEBUG] Message sent -- {"seq":104,"type":"response","request_seq":52,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":63},"type":"request","seq":53}
ocamlearlybird: [DEBUG] Message sent -- {"seq":106,"type":"response","request_seq":53,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":64},"type":"request","seq":54}
ocamlearlybird: [DEBUG] Message sent -- {"seq":108,"type":"response","request_seq":54,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"breakpointLocations","arguments":{"source":{"name":"main.ml","path":"/Users/echo/Desktop/fuzzing/x86binsec/binsec/src/main.ml"},"line":65},"type":"request","seq":55}
ocamlearlybird: [DEBUG] Message sent -- {"seq":110,"type":"response","request_seq":55,"success":true,"command":"breakpointLocations","body":{"breakpoints":[]}}
ocamlearlybird: [DEBUG] Message recv -- {"command":"continue","arguments":{"threadId":0},"type":"request","seq":56}
ocamlearlybird: [DEBUG] Message sent -- {"seq":112,"type":"response","request_seq":56,"success":true,"command":"continue"}
ocamlearlybird: [DEBUG] Message sent -- {"seq":113,"type":"event","event":"terminated"}
ocamlearlybird: [DEBUG] Message recv -- {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":57}
ocamlearlybird: [DEBUG] Message sent -- {"seq":115,"type":"response","request_seq":57,"success":true,"command":"disconnect"}
ocamlearlybird: [DEBUG] loop end
ocamlearlybird: [INFO] Client 127.0.0.1:58326 disconnected

@sim642 sim642 added the bug Something isn't working label Jun 20, 2023
@vthemelis
Copy link

I had the same issue and it got resolved by setting

(map_workspace_root false)

in my dune-project file. Does this help?

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

3 participants