Skip to content

Commit

Permalink
Name CI step, improve trace and makefile deps
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Apr 17, 2024
1 parent 26371a1 commit bfc9c72
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
- run: |
- name: Install haxelib dependencies
run: |
haxelib git format https://github.com/HaxeFoundation/format.git
haxelib install hscript
haxelib install vshaxe
haxelib install vscode
haxelib install vscode-debugadapter
- run: |
haxe build.hxml
make build
- name: Build extension
run: make build
- name: Build CLI hl
run: |
cd debugger
haxe debugger.hxml
cd ..
- name: Build standalone adapter.js
run: haxe build.hxml

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
all:

deps:
cd hldebug-wrapper && npm install && rm -rf build node_modules
npm install
cleanup:
/bin/find . -name *.obj | xargs rm -f
Expand Down
4 changes: 2 additions & 2 deletions src/HLAdapter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class HLAdapter extends DebugSession {
debug("Load module " + program);
dbg.loadModule(sys.io.File.getBytes(program));

debug("Connecting");
debug("Connecting to 127.0.0.1:" + port);
dbg.connectTries("127.0.0.1", port, 2, function(b) {
if( !b ) {
// wait a bit (keep eventual HL error message)
Expand Down Expand Up @@ -973,7 +973,7 @@ class HLAdapter extends DebugSession {
}

override function setDataBreakpointsRequest(response:SetDataBreakpointsResponse, args:SetDataBreakpointsArguments) {
debug("SetDataBreakpoints request");
//debug("SetDataBreakpoints request");
var current = watchedPtrs.copy();
for( a in args.breakpoints ) {
if( a.dataId == null ) continue;
Expand Down

0 comments on commit bfc9c72

Please sign in to comment.