Writing to output window of Visual Studio

前端 未结 13 1763
忘了有多久
忘了有多久 2020-11-28 17:56

I am trying to write a message to the output window for debugging purposes. I searched for a function like Java\'s system.out.println(\"\"). I tried Debug

13条回答
  •  悲&欢浪女
    2020-11-28 18:05

    This is not an answer to the original question. But since I found this question when searching for a means of interactively dumping object data, I figured others may benefit from mentioning this very useful alternative.

    I ultimately used the Command Window and entered the Debug.Print command, as shown below. This printed a memory object in a format that can be copied as text, which is all I really needed.

    > Debug.Print 
    
      id: 1
      idt: null
      igad: 99
      igbd: 99
      gl_desc: "New #20"
      te_num: "1-001-001-020"
    

提交回复
热议问题