Skip to content

Commit

Permalink
Removed documentation and obsolete natlinkpydebug.py. Start DAP in lo…
Browse files Browse the repository at this point in the history
…ader of configured in natlink.ini.
  • Loading branch information
dougransom committed Feb 22, 2024
1 parent 76035d7 commit 7fa1232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 379 deletions.
276 changes: 0 additions & 276 deletions documentation/developers.md

This file was deleted.

11 changes: 6 additions & 5 deletions src/natlinkcore/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,12 @@ def startDap(config : NatlinkConfig) -> bool:
if config.dap_wait_for_debugger_attach_on_startup:
#use info level logging, the user will need to know as natlink and dragon will hang here.
#unti debuger is attached.
logging.info(" waiting for debugger to attach")
logging.info(f"waiting for debugger to attach using DAP in {__file__} ")
debugpy.wait_for_client()
return dap_started

except Exception as ee:
print(f"""
logging.info(f"""
Exception {ee} while starting DAP in {__file__}. Possible cause is incorrect python executable specified {python_exec}
""" )

Expand Down Expand Up @@ -697,11 +698,11 @@ def run() -> None:
default_logger.removeHandler(h)


print(f"Dap enabled: {config.dap_enabled} port: {config.dap_port} ")
logging.debug(f"Dap enabled: {config.dap_enabled} port: {config.dap_port} ")
main.start()
except Exception as exc:
print(f'Exception: "{exc}" in loader.run', file=sys.stderr)
print(traceback.format_exc())
logging.info(f'Exception: "{exc}" in loader.run', file=sys.stderr)
logging.info(traceback.format_exc())
raise Exception from exc

if __name__ == "__main__":
Expand Down
Loading

0 comments on commit 7fa1232

Please sign in to comment.