15

How do i access the Modules window in Visual Studio 2010?


Irrelevant information

According to MSDN, only certain editions of Visual Studio let you access the modules window (i.e. Pro, Premium, Ultimate). i have Professional:

enter image description here

Note: Strictly speaking i don't have Pro, but i assume Pro is shorthand for Professional

MSDN goes on to say:

To display the Modules window in break mode or in run mode

  • On the Debug menu, choose Windows, and then click Modules.

Except i have no Modules menu option:

enter image description here

(edit: updated screenshot to show debugging, sitting at a breakpoint)

How do i access the Modules window in Visual Studio 2010?


Irrelevant information

i tried to Customize the Debug -> Windows item:

enter image description here

except there is no Debug -> Modules item:

enter image description here

Nor is there any Windows -> Modules item:

enter image description here

How do i access the Modules window in Visual Studio 2010?

See also

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
  • 1
    Perhaps you have to set a breakpoint and start running the app? There is no list of loaded modules for an app that hasn't loaded any. :) – Ken White Nov 15 '11 at 17:44
  • @KenWhite Updated question with screenshot proof: Debugging, sitting at breakpoint. – Ian Boyd Nov 15 '11 at 19:44
  • Hmmm... Strange. That was the only diff I saw between your original screen cap and @Nacereddine's. – Ken White Nov 15 '11 at 21:08

3 Answers3

22

Possible solutions :

  • Try the shortcut Ctrl + D, M (Note that I configured my VS2010 for C# development the first time I started it so the shortcut may not be the same).

  • Also, try repairing the install of VS2010 (This has helped me in the past).

  • You can also reset VS settings from Tools -> Import and Export settings -> Reset all settings

Note that I also have VS2010 Professional edition and it's visible for me under Debug -> Windows -> Modules (I'm stopped at a break point here) :

enter image description here

Edit :

The option is also available in the Customize window

enter image description here

P.S: This option is only available when in debug mode

Community
  • 1
  • 1
Nasreddine
  • 36,610
  • 17
  • 75
  • 94
  • What happens if you try to customize the debug menu? – Ian Boyd Nov 15 '11 at 17:00
  • The option is also available there. – Nasreddine Nov 15 '11 at 17:06
  • Dammit. Now if i can only get an explanation of why Visual Studio 2010 "Professional" doesn't have it. Are you running "Pro" or "Professional"? – Ian Boyd Nov 15 '11 at 18:08
  • @IanBoyd I am running "Visual Studio 2010 Professional" (Which I got from dreamspark.com, not that this changes anything, except for the price). There is only a Professional Edition, not Pro. They're all listed [here](https://www.microsoft.com/visualstudio/en-us/products/2010-editions) – Nasreddine Nov 15 '11 at 18:22
  • `Ctrl+D, M` had no effect. i **Reset all settings** and now i have **Modules** window. Still begs the question how to customize Visual Studio to include Modules menu option. But someone else can ask that question, i've lost enough time on this. Losing all my keyboard shortcuts is an easy enough fix to call it answered. – Ian Boyd Nov 15 '11 at 19:48
  • @IanBoyd Next time, you can export only your keyboard settings to restore them after such drastic measures. – Nasreddine Nov 15 '11 at 19:55
  • Too late! (It was only a dozen or so) – Ian Boyd Nov 15 '11 at 21:19
3

From your screen shot of the Debug menu I can see that you are not running the application with the debugger attached (Press F5). Most of the 'debug' windows (Threads, Watch, CallStack, Register, Modules) are not visible in the Debug Menu or the Visual Studio IDE unless you are debugging the application.

Are you at a breakpoint in your code before looking for the Modules window?

Walt Ritscher
  • 6,977
  • 1
  • 28
  • 35
  • The last time i was able to run the project there still was no modules window. i've recursed four levels deep in Visual Studio and questions on stackoverflow about bugs in Visual Studio: `Scaling not working` -> `Framework debugging not working` -> `Modules window not working` -> `Settings not working in .NET 3.5`. Once i can get an answer to my nested *Settings crashing in .NET 3.5* i can `RET` to this question, updating the question with a screenshot proof. But i can tell you that there was no modules menu option at runtime. – Ian Boyd Nov 15 '11 at 19:28
  • Updated question with screenshot proof of no **Modules** menu option, while debugging, sitting at a breakpoint. – Ian Boyd Nov 15 '11 at 19:42
  • OK. What type of project and what programming language? – Walt Ritscher Nov 15 '11 at 21:02
  • I belive the settings for the Visual Studio debug menu are stored here. HKEY_CURRENT_USER\Software\Microsoft\VCSExpress\10.0\Debugger or HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger – Walt Ritscher Nov 15 '11 at 23:28
  • This was it for me in Visual Studio 2017 Community. Thanks a lot. – Martin Dawson Nov 12 '17 at 10:18
0

It's Ctrl+Alt+u for launching Modules in C++ app development in VS.