Procmon: how to inject debug messages and have them included in the output?

Bob K 26 Reputation points
2022-04-19T21:08:04.1+00:00

Here is the problem, I found the help topic: Injecting Application Debug Messages

This is great! I can write a debug message, send it to the procmon device and it will be in the procmon log.

Unfortunately, this seems nearly useless. I'm hoping I misunderstand something.

It appears that the only way to include the debug messages is to add a Filter clause:

Operation Is Debug Output Profiling then Include.

If I add that to the filter, I see the debug messages. The problem is I also need other filters, such as:

Path Begins with "c:\dir1\dir1\" then Include.

When I add any other clause to the filter, it clears the screen because both clauses are ANDed together, which will never result in any events since the debug events have no path.

Can debug messages be used when using filters?

Thanks.

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,170 questions
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 45,701 Reputation points
    2022-04-20T16:06:43.743+00:00

    After building the NativeTest.exe application for use with ProcMon debug messages I set up the following filter.

    194793-procmonfilter.png

    and the capture results were -

    194728-procmondisplay.png

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.