
How can I use Process Monitor to troubleshoot the execution of my program?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 23 Jun. 2011
Bearbeitet: MathWorks Support Team
am 25 Mär. 2025
How can I use Process Monitor to troubleshoot the execution of my program?
Akzeptierte Antwort
MathWorks Support Team
am 25 Mär. 2025
Bearbeitet: MathWorks Support Team
am 25 Mär. 2025
Process Monitor is a free tool that allows you to troubleshoot file/folder and registry key access problems that might be causing your application to behave unexpectedly.
In order to monitor file events, registry events, and process and thread events generated by an application using Process Monitor, follow the steps listed below:
1. Download Process Monitor from the following website:
2. Launch Procmon64.exe.
3. If you are prompted with a filter dialogue, dismiss it for now.
4. Deselect the Capture button to stop logging as shown in the screenshot below. Alternatively, click File > Capture Events or use the Ctrl+E shortcut.

5. Click the eraser to clear all current entries. Alternatively, click Edit > Clear Display or use the Ctrl+X shortcut.
6. If you intend to capture all program activity, press the Capture button again whenever you're ready and then skip to Step 11.
IMPORTANT NOTE: To troubleshoot your executable, especially when it interacts with other applications and you are not sure which application might be interfering with yours (e. g. AntiVirus), do not set a filter and skip to Step 11. Close unrelated programs and processes running on your computer to keep the log as small as possible.
If you only want to capture MATLAB activity, follow the steps below to set up a filter to do so.
7. Click the Filter funnel button, or click Filter > Filter.
8. In the drop-down menu reading "Architecture", click it and change it to "Process Name".
9. In the text field to the right of "Process Name" and "is", type in the exact name of your executable, including the extension (.exe), for example, "matlab.exe", and then press "Add".
10. Press OK when finished.
11. Press the capture button again. Alternatively, check File > Capture Events or use the Ctrl+E shortcut.
12. Start MATLAB.
13. When finished logging, stop the capture, and click the Save button (floppy disk).
14. Save the file with the default settings (PML format) and remember the path where the log file is saved.
You will likely need to have this file compressed into a ZIP archive to be retrievable.
You can watch an example demonstration of how to use this tool on Microsoft Learn:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Java Package Integration finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!