Cannot get DEBUGMONITOR to work

Jan 28, 2020
6
0
[ This is a re-port of something I recently sent to the wrong forum ]

Take Command 25.

I've seen previous (very old) posts here regarding the use of DEBUGMONITOR. Apparently some bugs were fixed that prevented the associated command from working. However, I cannot get it to work. Maybe I'm misunderstanding how it's supposed to operate.

I've tried many variations, e.g.:

DEBUGMONITOR FOREVER echo %_outputdebugstring% DEBUGMONITOR FOREVER echo %_outputdebugstring DEBUGMONITOR FOREVER echo Hello DEBUGMONITOR FOREVER start calc DEBUGMONITOR FOREVER msgbox OK TCC

None of the commands seem to be acted upon when I run a program I know outputs using OutputDebugString (and verified with DebugView). I am running TCC with elevated permissions if that affects anything.

Note that the environment variable _outputdebugstring is seen, as the last emitted string.

What am I doing wrong?

[ Also, the docs for DEBUGMONITOR incorrectly refer to ASSOCIATE in the options section ]
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Rex, did you look into this? For what it's worth ...

I found a sample monitoring program (Ken Zhang, 2007) and built an x64 Release version. It built and worked on Win 10 right out of the box, but only when elevated. That was easy to fix. When opening the "DBWinMutex" mutex, I used SYNCHRONIZE instead of MUTEX_ALL_ACCESS. Now it works unelevated.

I also added outputting the PID. Maybe a future version of DEBUGMONITOR will set a variable for the PID.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
I found a sample monitoring program (Ken Zhang, 2007) and built an x64 Release version. It built and worked on Win 10 right out of the box, but only when elevated. That was easy to fix. When opening the "DBWinMutex" mutex, I used SYNCHRONIZE instead of MUTEX_ALL_ACCESS. Now it works unelevated.

In fact, it seems you don't need the mutex at all. The code I'm using opens it but never uses it for anything. And the app still works when I remove all references to it. I found a second example which (similarly) opened the mutex and never used it. And I found a third example which didn't even mention the mutex.
 
Jan 28, 2020
6
0
Confirmed fixed in version 25.00.28. Thanks!

Incidentally, my first example usage above should have doubled the '%' characters for correct output.

DEBUGMONITOR FOREVER echo %%_outputdebugstring%%
 
Similar threads
Thread starter Title Forum Replies Date
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
samintz WAD Cannot unset .py[co] Support 2
Peter Murschall TEE cannot handle Unicode output Support 2
Jay Sage Cannot Postion Cursor in Command Line Using Mouse Support 7
Joe Caverly A new guard page for the stack cannot be created Support 6
O I cannot use links to .btm files Support 5
E Cannot paste dollar sign into TCC on Windows 10 1803 Support 7
N Cannot install Support 2
Patulus TCHistoryLog: TCC: (Sys) The system cannot find the path specified Support 15
thorntonpg F1 on command line The webpage cannot be found Support 5
M Fixed Cannot use the "Browse..." function in "Find files/text" dialogbox Support 2
gschizas Fixed Cannot use extended path to delete invalid file Support 3
S WAD Cannot access mapped drive in 64b Win7 Support 15
S WAD Messages cannot be seen or accessed in Forum Support 12
D cannot get into ftp://jpsoft.com/oldver Support 1
T signaling firstcondition and cannot change colors Support 8
L File association: System cannot find the associated program Support 30
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
L Thanks from larryalk was Cannot apply Start in folder for Tcmd Support 11
L Cannot apply Start In folder for Tcmd Support 15
C Cannot register v12.10 without Internet access Support 19
BobK Error from START cmd, "cannot find the file" Support 16
newbie Cannot make a btm/tcc.exe window wider Support 4
P Cannot download any of Vince Fatica's plugins Support 4
Roedy Cannot have both v10 and v11 Support 7
A Cannot permanently remove Tabs toolbar using View menu - bug? Support 8
M TCC cannot find the path specified Support 4
mscheuner TCMD 8 - cannot register on Vista x64 Support 0
vefatica DEBUGMONITOR's threads? Support 3
J DebugMonitor - More mystical than magnets? Support 6

Similar threads