Visual Studio Developer Center > Visual Studio Forums > Phoenix > Control Flow Graph Add-in installed but cannot see Control Flow Graph
Ask a questionAsk a question
 

QuestionControl Flow Graph Add-in installed but cannot see Control Flow Graph

  • Monday, October 05, 2009 3:57 PMhowtent Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi All:

        I had installed Phoenix recently and is using Visual Studio 2008. And in Visual Studio 2008, I had installed Control Flow Graph Add-in and can see the Control Flow Graph window and A Control Flow Graph Window Button added onto my VS2008 after the installation.

       I created a C++ program using VS2008, the CodeModel comment is added into the C++ program.

        However when a position my Cursor onto a function name in the C++ program, I am Not able to see Control Flow Graph on the Control Flow Graph Window.

       Is there anyone who knows what is the problem? Why I can't see any graph on the Control Flow Graph Window?

       Many thanks

All Replies

  • Sunday, October 18, 2009 9:51 AMAndy Ayers - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    If I recall correctly, the control flow graph can only be seen once the project is built, since it relies on disassembling the binary.


    Architect - Microsoft Phoenix Project
  • Sunday, October 25, 2009 6:23 AMJohn Connor Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    hi: Maybe i made a mistake somewhere. i installed the CFG .but i can't see the CFG window and the IR windows? why ? how did you intall that. thanks
  • Thursday, October 29, 2009 6:32 AMAndy Ayers - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I started looking into this more deeply but am saddened to report that I can't seem to see any addins in my VS2008. It sounds like there are some mysterious circumstances can cause addin registration to fail, and I'll need to get that sorted out.

    In the meantime, I was going to recommend was something like the following:

    launch vs2008
    file | new | project ...
      win32 console application
    right-click on project, select properties
    navigate to C/C++ | General
      set Debug Information Format to Program Database (/Zi)
    navigate to Linker | Advanced
      set Profile to Enable Profiling Instrumentation (/PROFILE)
    build the app
    open the class view window
    navigate to some function
    right click and view control flow graph

    Architect - Microsoft Phoenix Project