You are not logged in.

axtens

Trainee

  • "axtens" is male
  • "axtens" started this thread

Posts: 37

Date of registration: Mar 16th 2009

Location: Perth, WA, Australia

Occupation: Software/Test Engineer

Hobbies: be a husband and a dad, play ukulele, sing

  • Send private message

1

Monday, October 12th 2009, 3:37pm

Figure out how to determine if code is executed from within the IDE or not.

Re A1880's idea.

Naive question: Seeing as the IDE has its own hWnd, could comparing the app's hWnd to the IDE's hWnd work?

Bruce.

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Monday, October 12th 2009, 4:04pm

The Jabaco IDE starts the debuggee as separate Java process.
It uses Java Network Launching Protocol (JNLP) to do that.
This process is thus remotely controlled to be debuggable.

One could analyse parent/child relationships of process IDs to detect the "child" status w.r.t. the IDE.
But there ought to be simpler ways to answer the "isInIDE" question.
Probably a matter of some JNLP calls.

Greetings!

A1880

Rate this thread
WoltLab Burning Board