Windows – How to debug a problematic word document

microsoft wordmicrosoft-word-2013performancescrollingwindows 8.1

I realize that there are tons of questions with similar symptoms, but I checked most of them and could not find an answer.

My system setup is as follows; nothing special running in the background:

  • Windows 8.1 64-bit.
  • Office 2013, no add-ons, no macros.
  • Intel i7
  • 8GB of RAM
  • SSD

What happens is that from time to time something happens to MS Word (while I am editing a document) and it becomes unresponsive eating up 100% CPU, scrolling is jumpy, etc… This is probably related to certain documents; I’ve noticed that it happens with certain documents more often then others. I know what the problematic documents are, but I cannot not work with them. Copy and pasting the content into a new document does not help and the documents in question are not particularly large.

So how to debug this issue? Where do I start?

How can I inspect the document to see what kind of stuff (in addition to plain text) they put in there? I tried the “inspect document” thing and it found some stuff, but it is not very informative – it just says “custom XML found,” “invisible objects found,” etc… I tried removing what can be removed, but this did not help. I would like to actually see what has it found.

How can I debug Word when the problem occurs?

Any other ideas?

Best Answer

You could use Process Explorer to debug Word when the problem happens :

Right-click on winword.exe, choose Properties, and go to the Threads tab. Identify the thread that is using the CPU and click on it, then press the Stack button to see which system calls it is using.

A detailed description of this procedure can be found in this answer.

If you wish us to take a look at it, take a screenshot and post it here.

image

Related Question