Skip to content

OSX debugger stop on all exceptions issue #80

Description

@rcstuber

Currently enabling "Stop on all exceptions" in the VSCode extension has been disabled, due to issues with setting the appropriate flags in Hashlink. Potential causes could be byte misalignment or faulty 32bit pointer write-op. I will investigate this further.

Function writing into the native thread info:

function set_breakOnThrow(b) {
var count = eval.readI32(jit.threads);
var tinfos = eval.readPointer(jit.threads.offset(8));
var flagsPos = jit.align.ptr * 6 + 8;
for( i in 0...count ) {
var tinf = eval.readPointer(tinfos.offset(jit.align.ptr * i));
var flags = eval.readI32(tinf.offset(flagsPos));
if( b ) flags |= 2 else flags &= ~2;
eval.writeI32(tinf.offset(flagsPos), flags);
}
return breakOnThrow = b;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions