Debugger not compliant with the wiki informations and not stopping

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
devtools

Research direction

Reproduce the supplied Main.hx example with build.hxml, hxcpp-debugger 1.0.6, hxcpp 3.2.193, and the shown debugger commands. Start at debugger/Local.hx:46 and compare the observed startup stop, breakpoint at Main.test, and continue behavior with the wiki; done means the debugger stops and reports locations as documented.

Written by the indexing model from the issue text.

Description

Hello guys,
I am trying to used hxcpp-debugger for my project but I don't get the same result as describe in the wiki.

class Main {
    static public function main() {
        new debugger.Local(true);
        trace(test(null));
    }

    static function test(a:String) {
        return a.charAt(0);
    }
}

Here are the commands used :

± |master U:2 ?:1 ✗| → cpp/Main-debug 

-=- hxcpp built-in debugger in command line mode -=-
-=-      Use 'help' for help if you need it.     -=-
-=-                  Have fun!                   -=-
Thread 0 stopped in debugger.Local.new() at debugger/Local.hx:46.

1> break Main.test

Breakpoint 1 set and enabled.

2> continue


3> Main.hx:10: 

As you can see, event the line : Thread 0 stopped in debugger.Local.new() at debugger/Local.hx:46. is not saying 1> Thread 0 stopped in 0.Main() at main:0.

Here are my haxelib, build.hxml and system information :

± |master U:2 ?:1 ✗| → haxelib list
hxcpp-debugger: [1.0.6]
hxcpp: [3.2.193]
hxcs: [3.2.0]
hxjava: [3.2.0]
mithril: [0.25.7]

Build.hxml :

-cp src
-main Main
-debug
-cpp cpp
-D HXCPP_DEBUGGER
-lib hxcpp-debugger

image

Can you help please ?

Dominant language
Haxe
Stars
49
Forks
16
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/hxcpp-debugger

All issues in HaxeFoundation/hxcpp-debugger

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.