p*p 发帖数: 75 | 1 I like using Debug.Assert to harden the code. But it only works well in
Windows Forms, but no on ASP.NET. any idea? |
|
|
|
s******e 发帖数: 96 | 4 I have an unmanged code that calls a managed code dll. I wrote both code. It
works OK. But how can I debug into the managed code dll from within the
unmanaged code? In visual studio,it just doesn't go into the managed code
when I tried to step into it in the unmananged code. any idea? Thanks. |
|
x*********n 发帖数: 28013 | 5 后来连上了。
大哥,我debug message看不懂啊。 |
|
he 发帖数: 2025 | 6 慢慢多看几次就有门了。
倒不急着读DEBUG排错,最重要是弄清整个路径,从哪里开始到哪里结束,刚开始的时
候老老实实画出来,养成好习惯,以后就熟练了。 |
|
p*********1 发帖数: 68 | 7 原来电脑一切正常,刚搬家后,重新架起来后发现电脑WIN7关机后主板还在通电,
CPU和机箱风扇还在运转,Asrock z77 Extreme 4的debug显示code 05,直到切断电源
才能停下来。
网络显示是0x05 – OEM initialization before microcode loading.
请教版上的大牛们,不知道是什么问题,怎么处理。 |
|
t*******l 发帖数: 3662 | 8 i have to write a java applet that can communicate with a server. i am
wondering how you guys debug such java applet from source level?
thanks |
|
e***g 发帖数: 158 | 9 java plug-in control panel, runtime parameters.
just like how you debug a standalone java app.
i never tried though, good old System.out suffice. |
|
g*****g 发帖数: 34805 | 10 I just realize our web service was compiled with debug on,
it's convenient if something goes wrong, just want to know
if it will sacrifise a lot of performance. |
|
m******t 发帖数: 2416 | 11 My understanding is it causes javac to include debug info, but doesn't turn
on or off any actual code optimization. |
|
c**o 发帖数: 186 | 12 I used eclipse debug function and attached souce code with class files.
But now, I found when I want to know where is my class file, eclipse will
point to my source code.
I know it is not very big deal. But I want to know how I can dis-attach my
source code with these class files.
does anyone know how?
Thanks. |
|
g*****g 发帖数: 34805 | 13 Why do you need to debug an applet remotely?
Can't you just run it within eclipse?
contains
me |
|
m*****k 发帖数: 731 | 14 No, applet communicates extensively with server, something not easy to mock
out. we do have some standalone for dev/debug purpose. |
|
g*****g 发帖数: 34805 | 15 Use log4j, and write code like
if(logger.isDebugEnabled() {
logger.debug(xxx)
}
This is the standard practice. You can change logging level with
log4j configuration in runtime. |
|
g*****g 发帖数: 34805 | 16 Sometimes I would add a condition check and throw exception, wrap a catch
around it and you can add a debugging point inside the catch. Of course you
can let eclipse debugger break on the exception too. |
|
h**********c 发帖数: 4120 | 17 how QT is debugged,
printf, cout
anything like VS F5,F10,F11? |
|
|
a*****i 发帖数: 4391 | 19 Anyone tried debugging with eclipse cdt?
I am just learning eclipse , it is certainly very ... powerful. |
|
l******e 发帖数: 12192 | 20 运行程序得有debug info
release的程序多半没有 |
|
s*****w 发帖数: 1527 | 21 i'm creating a lib file in bsd, how should i debug it ?
in windows i can set break points in the lib source file, then attach to a
exe process. |
|
S*A 发帖数: 7142 | 22 In linux you should be able to do the same as long as
keep the debug symbols in the lib. |
|
c****1 发帖数: 302 | 23 老美不识别中文汉字,可是公司软件需要支持中文,日文等Double-byte strings,有
什么样的tools方便这些 developers (English speaking folks)debug 公司的软件?
Linux上 或 Windows平台上不限 |
|
|
w*s 发帖数: 7227 | 25 just create a dummy c++ project, build ok, run ok.
hit F5 to debug, it says “Don’t know how to attach”.
1. Qt creator 2.4.1, it says based on Qt 4.7.4
2. /usr/lib/qmake-qt4 -v says using qt version 4.6.2 in /usr/lib
3. ubuntu, don’t know which version, uname -a says “62-ubuntu SMP … UTC
2011”
i’ve been coding for many years, mostly command line in linux, and windows.
spent 2 nights cannot solve this, trying to do updates, ubuntu keeps on
giving me error.
sigh, i don’t know what to say,
linux is ... 阅读全帖 |
|
b**a 发帖数: 1375 | 26 网上的参考洋洋洒洒, 试了都有各种各样的问题
我系统上的是2.5,需要编译一个debug版本的用来调试
哪位前辈有经验啊请不吝赐教 |
|
s*******b 发帖数: 106 | 27 malloc won't give Segmentation fault?
I debugged a program just recently. That program gave segmentation fault
shortly after start. Finally, I tracked down to 1 MALLOC call. That MALLOC is
inside a loop. When that malloc is called the 4th time, I got a segmentation
fault. By the way, that program uses lots of memory when it starts, like
server hundred MBs. And that Linux box doesn't have a lot of memory on it.
After I killed everything I can on that box to get more memory out of it, the
segmenat |
|
t*****l 发帖数: 121 | 28 以前在vc++ 6.0 debug mode下,鼠标只要移动到一个变量上面
就可以自动显示该变量的值。不知道到了.NET怎么就不行了,感觉
很不方便。 |
|
n******d 发帖数: 1 | 29 Is there anybody know how to use gdb debugging execve()? When I worked on it,
it prompted the generic error both on AMD 64-bit and IA32 arch. |
|
a***e 发帖数: 1140 | 30 在LINUX下。用g++编译后的C++代码(编译码包含-g参数),运行测试文件后出错,core
dump,生成core.12345尸体。
我能对这尸体进行gdb debug吗?
我不想直接用 gdb exec_file。 原因是我代码里有随机数发生器,我用随机数来控制
branch。 如果再执行一遍控制次序就不一样了。 |
|
l*****l 发帖数: 171 | 31 I was using gdb to debug my C/C++ code under linux. I have trouble to display
the elements of a local array. For example:
(gdb) print myArray[0]
This always gives me the address of the first element, not the value.
If the array is dynamically allocated, then there is no problem.
Thanks ahead for your help! |
|
|
w******r 发帖数: 201 | 33 在.NET 的环境下用C++,明明设了断点,用F5执行starting debuging,可是总也不能
在断电上停下来。请问这是怎么回事?
可以保证的是,断点语句确实被执行了。是不是编译环境参数没设对?
谢谢 |
|
y****i 发帖数: 156 | 34 Is it in release mode? change to debug |
|
a**n 发帖数: 97 | 35 哦,我还以为通过GCC 加上特定的开关选项编译再通过GDB debug 就可以呢。汗!多谢
指教。 |
|
i******t 发帖数: 48 | 36 【 以下文字转载自 Linux 讨论区 】
发信人: inforest (IN FOREST), 信区: Linux
标 题: gdb debugging issue求助
发信站: BBS 未名空间站 (Thu Dec 20 18:47:58 2007), 转信
在gdb里设置断点break **.cpp:11
总是出现no source file named **.cpp
请问这是怎么回事,如何解决?用directory加了目录还是没用。
Thanks in advance. |
|
a***m 发帖数: 74 | 37 I used Visual C++ 2008 Express to build a simulation engine in win32 console
application.
My exe file was built successfully. It generated correct result. However,the
windows cmd window always pop up a message:
Debug Assertion Failed!
File: f:\dd\vctools\crt_bld\self_x86\crt\src\bdgbel.cpp
Line: 52
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
I don't understand what caused the problem and how to solve the problem.
Any suggestions are welcome.
Thanks. |
|
A*********l 发帖数: 2005 | 38 "It seems you did those" doesn't mean that you are doing those for all cases.
For these memory errors, debug the call stacks is the best thing you can do,
and look at the call stack, and examine the related memory, and then
examine the related code (code related to the call stack and related to the
object in question). |
|
a***o 发帖数: 969 | 39 【 以下文字转载自 Linux 讨论区 】
发信人: amigo (阿米哥), 信区: Linux
标 题: 有什么可视化的debug工具么
发信站: BBS 未名空间站 (Thu Apr 3 15:03:28 2008), 站内
像vc, tc那样的 |
|
y***y 发帖数: 295 | 40 刚开始使用VS调程序
加了几个breakpoint之后debug但是毫无效果
程序直接运行结束(breakpoint的位置肯定没有问题)
重新build也是一样
请问这是怎么回事呢?
是我什么地方设置的不对么?
谢谢! |
|
|
l*i 发帖数: 50 | 42 一个solution包括A,B两个project。A为核心类与算法,配置生成.dll;B为用户界面,
配置生成启动程序.exe。B中调用A中定义的成员函数。从B开始debug时无法step into
该函数。在函数代码段设置的断点也被完全视为无效。
两个.pdb文件都有,不知道是哪里设置不对。
多谢高人指点。 |
|
h*******e 发帖数: 225 | 43 you sure Project A has the correct settings? is it compiled with debug
information?
into |
|
X****r 发帖数: 3557 | 44 release builds skip all asserts, are more heavily optimized, and strip debug
symbols. |
|
s******e 发帖数: 431 | 45 And variables are not initialized in release build.
debug |
|
l********r 发帖数: 175 | 46 had no experience on debugging mpi error. I tried to use mpirun, but don't
know how to use it. Is there any manuscript on describing how to use it?
Thanks a lot. |
|
e******r 发帖数: 220 | 47 在visual studio环境下, 有个程序通过GUI启动. 就是GUI上有个按钮, 我一按,
程序就运行.
我想知道怎么debug? 比如说CODE里我放了个break point, 怎么通过GUI来stop at that break point?
谢谢 |
|
p*********w 发帖数: 606 | 48 设了断点 ,程序运行到那儿自然会停,和gui没关系
在visual studio环境下, 有个程序通过GUI启动. 就是GUI上有个按钮, 我一按,
程序就运行.
我想知道怎么debug? 比如说CODE里我放了个break point, 怎么通过GUI来stop
at that break point?
谢谢 |
|