游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3201|回复: 3

谁知道怎样用两个显示器(或机器)调试

[复制链接]

14

主题

72

帖子

106

积分

注册会员

Rank: 2

积分
106
发表于 2003-11-7 14:41:00 | 显示全部楼层 |阅读模式
谁知道怎样用两个显示器(或机器)调试
一个用来显示游戏画面,
一个用来调式程序,这样可以一边调试看代码,一边看运行画面
现在我调式时经常从游戏画面切换回vc时,变成白屏幕,hl2.exe无响应

4

主题

11

帖子

13

积分

新手上路

Rank: 1

积分
13
发表于 2003-11-7 15:56:00 | 显示全部楼层

Re: 谁知道怎样用两个显示器(或机器)调试

应该得用两台计算机吧
Visual C++6.0可以
你在MSDN里查 Debugging Remote Applications
就能找到

Debugging Remote Applications
You can debug programs running on remote Intel platforms. During remote debugging, the one computer (the debugger host) controls debugging using a small remote monitor program on the second computer (the remote target). The debugger host computer communicates with the remote target computer through a network connection.

This section covers the following topics:

Setting Up the Remote Debug Monitor
Connecting the Host and Target Machines
Starting Remote Debugging
How Can I Keep Focus When Stepping Through My Program?
How Can I Use Debugger Windows While Debugging a Foreground Program?
How Can I Speed Up Remote Debugging?
Error: Unable to Resolve an IP Address
Error: The VC++ Debug Monitor Is Not Correctly Installed
Error: The Specified Debug Password Is Incorrect
Error: Cannot Open File on Remote Machine

--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources.

18

主题

92

帖子

122

积分

注册会员

Rank: 2

积分
122
发表于 2003-11-7 15:58:00 | 显示全部楼层

Re:谁知道怎样用两个显示器(或机器)调试

得习惯用Printf来调试啊

比如调多线程,不可能在VC中单步的,只能Printf到屏幕或文件中才行

至于在HL2中,用Con_Printf打印到控制台,然后用按~切到控制台查看

或者用Warning输出到游戏画面上

1

主题

15

帖子

15

积分

新手上路

Rank: 1

积分
15
发表于 2003-11-7 19:12:00 | 显示全部楼层

Re:谁知道怎样用两个显示器(或机器)调试

同意fohoo的方法!
其实HL2的调试系统也是很棒的!
可以详细研究一下!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-5-11 02:35

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表