Your problem is very unlikely to be in the generated C code and just a logical 
bug. (Of course that's just a very educated guess though.)

Your question is easily answered when you consider that compiler flags are 
orthogonal, so `-d:release --debugger:native` works. Or `--checks:off 
--lineDir:off --debugger:native`.

`nim.cfg` contains this:
    
    
    @if release or quick:
      obj_checks:off
      field_checks:off
      range_checks:off
      bound_checks:off
      overflow_checks:off
      assertions:off
      stacktrace:off
      linetrace:off
      debugger:off
      line_dir:off
      dead_code_elim:on
    @end
    
    @if release:
      opt:speed
    @end
    

Knowing this, you can also use `-d:quick --debugger:native`. 

Reply via email to