由买买提看人间百态

topics

全部话题 - 话题: debug
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
c******n
发帖数: 4965
1
I hate this stupid idiom of
if (log.isDebugEnabled()) {
log.debug()
}
just wrap all log.debug() with AspectJ and the code will be automatically re
-written
l******0
发帖数: 244
2
还有个 eclipse 里面经常遇到的 debugging 问题. 就是在 debug mode 下,有时程序
运行得 abnormally slower than usual. 例如,设置两个 break point, 在第一个完
成后,点击 'resume',它不很快跳到 next break point, 而是运行很长时间,有时1,
2 分钟,很慢。
大家遇到过这种问题没有? 是什么原因
h**********c
发帖数: 4120
3
来自主题: Linux版 - 挖个坑how to debug QT
在fedora下写qt的gui
有什么工具能debug用吗?通常有几十个cpp,或在h里的templated class,
有些类是qt 的,有些是自己编的。
如果是multi-process怎么debug,不特定指qt的gui编程
F****3
发帖数: 1504
4
SAS在Linux环境下运行太难debug了。我现在是
1. 在windows下面写code
2. 用ssh把code放到服务器上面
3. 在服务器上运行code
4. 把服务器上的log下载到pc上
5. 在pc上查看log来debug
这个过程太繁杂了。请问有没有比这个更好的办法?
w*s
发帖数: 7227
5
ok, i don’t want to mention the pain we went through, me and another very
dedicated engineer are feeling exhausted, very exhausted.
we build c++ code in ubuntu in intel pc, the target runs in arm board.
we can step into the source code for exe, but not for shared library.
say
/aaa is the source code folder for exe, /aaa/1.cpp is the source for 1.exe
/bbb is the folder in target you have /bbb/1.exe
/ccc is the source code folder for shared library, /ccc/2.cpp is the source
for 2.so
/ddd is its fo... 阅读全帖
D*********s
发帖数: 555
6
来自主题: Programming版 - gdb debugging the system call execve() ...
你是要debug kernel么?还是debug glibc?

,
接下载。
b******z
发帖数: 16
7
来自主题: Programming版 - release Vs. debug???
The application i developed in Visual Studio 2005 compiles well in the debug
mode but when i switch to release mode, it couldn't compile instead gave me
a lot of link errors. I have nowhere to start to debug. :( Any one could
help me? Thanks a lot a lot.
q*c
发帖数: 9453
8
来自主题: Programming版 - release Vs. debug???
很多模块 release 和 debug 版本的名字都不一样。

debug
me
N*********y
发帖数: 105
9
来自主题: Programming版 - release Vs. debug???
debug和release的configuration是不同的。check project properties

debug
me
g*********h
发帖数: 21
10
来自主题: Programming版 - Debug Assertion Failed
我写的一个code,在debug的时候,运行到程序的最后,上面的code运行一切正常,但是
在退出main的时候,弹出一个窗口说Debug Assertion Failed!
Program:d:\test.exe
File:dbgdel.cpp
Line:52
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
我不知道怎么回事,本人是新手,望指教!
a**n
发帖数: 97
11
来自主题: Programming版 - A question about Debugging
I am developing an embedded system with CAN as the communication protocol.
It always becomes "dead" after a few hours. Host GDB lost connection with
the board. No CAN messages were sent out. I am wondering whether there is
a way to debug for this situation. I am pretty new in GCC debugging and
only uses some basic commands.
Thanks.
s***r
发帖数: 10
12
来自主题: Programming版 - VC++ release VS debug
Most likely it's an init problem. Debug version will initialize
uninitialized values/pointers to 0 while release version doesn't, that will
be filled with random values in release and cause random crash.
You can also build a release-debug version to test.
y*h
发帖数: 107
13
是不是说平常干活都要用debug build, 只有最后product的阶段用release
build?

debug
m******u
发帖数: 153
14
【 以下文字转载自 CS 讨论区 】
发信人: mamahuhu (), 信区: CS
标 题: 能否给些讲debug经验的文章和书籍
发信站: BBS 未名空间站 (Sat Aug 15 23:49:04 2009, 美东)
能否给些讲debug经验的文章和书籍
s*****w
发帖数: 1527
15
来自主题: Programming版 - Cannot debug into c# dll until i reboot ?
Hi,
my case is like this, c# test -> c# dll -> c++ dll
my solution contains all 3 projects.
so if i rebuild all 3 projects and debug from there, it cannot step
into c# dll.
if i run gacutil and reboot, now i can step into c# dll.
once upon a time i was able to step into c++ dll as well, but not now.
To make my life better, i need to hook up with windbg to step into
driver code as well.
So 1st Q:
what're the correct steps to debug into c# dll ?
w*s
发帖数: 7227
16
【 以下文字转载自 Linux 讨论区 】
发信人: wds (净洗前尘,从头再来), 信区: Linux
标 题: How to debug "broken pipe" in linux programming ?
发信站: BBS 未名空间站 (Wed Dec 21 20:34:08 2011, 美东)
hi we have complicated multithread code, as most companies do.
Now under stress test we have broken pipe.
How to debug this pls ?
Q1:
if in the popen, pclose case,
http://www.crasseux.com/books/ctutorial/Programming-with-pipes.
if 1 thread is exiting, it can check all opening pipes associating with it,
can it ?
if pipes still open, then wait ... 阅读全帖
s********f
发帖数: 3924
17
我用的 vc++ 2005, 在win7 32bit机器上debug和release都没问题。 换到win7 64bit
机器上, release模式没问题,debug模式下,可编译,但是运行的时候出错
“unable to start program ****
This application has failed to start because the application configuration
is incorrect. Review the manifest file for possible errors."
manifest如下
xml version='1.0' encoding='UTF-8' standalone='yes'?>



e***a
发帖数: 1661
21
来自主题: Programming版 - 如何有效 DEBUG 开源软件中的 BUG?
当遇到开源软件中不可绕过的 BUG,如何有效地进行 DEBUG?
在 JIRATICKET 上贴一个报告等待别人处理,
还是从 GITHUB 上 PULL 整个 SOURCE CODE 到自己的电脑中进行 DEBUG?
现在我确定 spring batch 2.2.0 有一个恶心的 BUG,需要尽快解决。
z****e
发帖数: 54598
22
来自主题: Programming版 - 如何有效 DEBUG 开源软件中的 BUG?
如果你要debug
用ide就可以了
ide可以自动download sourcecode
你先download src,然后debug时候就可以看到了
ide是工业时代的开发方式,vi是给农民用的
g*****g
发帖数: 34805
23
来自主题: Programming版 - java annotation怎么debug?
It's just metadata, nothing to debug. You don't debug properties files, do
you?
n******7
发帖数: 12463
24
我写R的时候也有这个疑问,如何debug?
我记得Rstudio现在可以设置断点了吧
不过函数套函数的时候要怎么搞呢?
以前R的code一旦写多了,debug就是个噩梦
特别是要跑半个小时来reproduce某个bug。。
b********s
发帖数: 13
25
来自主题: Unix版 - any debugging tool?
Thanks a lot! I found it. The workshop is already in our machine.
BTW, in my makefile, I put the option -g after CC, but it seems doesn't work.
No debugging information is included after compiling. Do you
know why? What kind of option should I add to my makefile if
debugging is needed
Is there any options I can choose in workshop? What I see right
now is that I edit my makefile first. Not like the VC++, makefile
is automatically created for you after you choose options and files.
Thanks again!
j**t
发帖数: 439
26
来自主题: Unix版 - any debugging tool?
-g is enough for debugging. There must be something else not correct.
Maybe you should check the work or debugging directory of your workshop.
good luck.
l******9
发帖数: 579
27
【 以下文字转载自 Statistics 讨论区 】
发信人: light009 (light009), 信区: Statistics
标 题: R studio 进入debug状态后, 很慢 ?
发信站: BBS 未名空间站 (Thu Apr 10 23:52:15 2014, 美东)
在用 R studio 做 R code 开发。
如果 不设 breakpoint, R code 从什么地方开始运行 , R code 没有 main 函数 ?
为什麽 进入 debug 状态 以后, R studio 变得 很慢, 我按执行下一行 按钮, 没
反应 ?
按 source on save button ,程序从哪里开始运行?
谢谢
l******9
发帖数: 579
28
【 以下文字转载自 Statistics 讨论区 】
发信人: light009 (light009), 信区: Statistics
标 题: R studio 进入debug状态后, 很慢 ?
发信站: BBS 未名空间站 (Thu Apr 10 23:52:15 2014, 美东)
在用 R studio 做 R code 开发。
如果 不设 breakpoint, R code 从什么地方开始运行 , R code 没有 main 函数 ?
为什麽 进入 debug 状态 以后, R studio 变得 很慢, 我按执行下一行 按钮, 没
反应 ?
按 source on save button ,程序从哪里开始运行?
谢谢
i*******r
发帖数: 51
29
You can try debug in command line mode.
Suppose you have a function main(), use
>debug(main)
then
> main()
you will stop at the first line in the function of main.

l******9
发帖数: 579
30
I have to debug a store procedure on SQL server 2008 R2 on Microsoft sql
studio.
In my SQL query, I have to call two store procedures :
EXEC @return_value = [my_database].[dbo].[store_procedure1]
in [my_database].[dbo].[store_procedure1], I need to call another procedure:
execute @return_status = store_procedure2
in debugging mode of SQL server management studio, I can step into [store_
procedure1] but, I cannot step into [store_procedure2].
Any help would be appreciated.
b*******g
发帖数: 513
31
在大家的帮助下,总算找了一个IDE,写了一小段程序,compile后有一个错误,没看懂
。又run,结果说这个project还没compile.又 debug,同样说这个project还没compile.
很迷惑。这样看来debug和compile不是一回事。那么他们之间有啥区别?是不是一定要
compile之后没错才能run?后来还听说可以用lunix的ide.曾用过red hat.看来lunix在
一般的lap top 上都能装?如果是又该怎么装?好多不懂,问一下大家。多谢!
b*******g
发帖数: 513
32
那么,是不是complie,debug,run都要有个先后次序?那么先用compile,再run?那debug
啥时用?如果compile时,出错了,一定要把程序该好了,才能run?我用的是dev c++.
A*****n
发帖数: 243
33
compile和link的过程中出错,一般是语法问题,比如大小写什么的或者找不到所要用的
库。
如果compile和link得到可执行文件乐,程序还有可能报错,或者无法实现想要的功能,
这个时候可以进行debug,在程序中插入断点或者单步执行,并且观察运行过程中变量的
取值等信息,看看错误的地方在哪里,逐步调试运行实现想要的效果。

debug
w*********r
发帖数: 488
34
我以前用MATLAB 比较多,那个debug方便一些。发现SAS的enterprise guide editor页
面没有设断点,单步执行看结果的选项啊?以前用SAS都是写很少的codes就能做很多事
情,没想过这个问题。不知道平时大家用SAS都怎么debug?
s*****n
发帖数: 2174
35
编译类的语言, 都不怎么容易单步debug吧.
解释类语言(Matlab, R, Python这类的), 用多了就喜欢单步debug.
o****o
发帖数: 8077
36
我列的那个就可以单步debug
不过一般SAS programmer搞的东西相对简单点,debug要求不高,加点put=语句一看就
明白错在哪儿了
F****3
发帖数: 1504
37
来自主题: Statistics版 - SAS在Linux环境下运行太难debug了
SAS在Linux环境下运行太难debug了。我现在是
1. 在windows下面写code
2. 用ssh把code放到服务器上面
3. 在服务器上运行code
4. 把服务器上的log下载到pc上
5. 在pc上查看log来debug
这个过程太繁杂了。请问有没有比这个更好的办法?
D******n
发帖数: 2836
38
来自主题: Statistics版 - SAS在Linux环境下运行太难debug了
其实很好debug,你得用点linux下面debug SAS的tricks,最要紧是学会linux下面的编
辑器,VI 或者emacs。
z*******n
发帖数: 1034
39
来自主题: MobileDevelopment版 - Facebook's open-source Android debugging tool
Facebook's open-source Android debugging tool
https://code.facebook.com/posts/393927910787513/stetho-a-new-debugging-
platform-for-android/
s****r
发帖数: 31686
40
来自主题: Detective版 - How to debug: 婴儿为何啼哭?
建议从下列方面进行debug:
1. 是否饥饿? 可以观其言察其形
2. 不肯吃奶, 上下扭动, 可以解开包袱, 观察尿布
3. 如有屎尿, 更换之。 但是有的学派认为应该先喂奶, 再换尿片, 客观上形成坐
在大便上吃饭的效果, 这样是否科学值得商榷
4. 更换尿片之后, 还是不肯吃, 依然啼哭扭动
, 是否又拉了值得怀疑, 建议再次检查尿片。
5. 更换尿片之后, 如果刚刚拉了很多粑粑, 应该是肯定饿了, 此时喂奶可收事半功
倍之效, 犹如雪中送炭, 该婴儿自会感激
6. 如果依然啼哭, 又穿了新衣服, 建议检查新衣, 看是否有什么别针之类作祟
7. 如果继续啼哭, 建议开始考虑是否该婴儿是带病坚持吃奶睡觉等等。。。
总而言之, 思路要广, 思维要有逻辑, 手脚不能慌乱, 要不会形成大人婴儿双败局
面, 和18大倡导的科学发展观不符合
z****n
发帖数: 3189
41
很多改动,这个这样改,那个那样改,结果会怎么样,不知道,只能做实验
就好比你写代码,不写unit test,不做debug,直接上production
自然是又慢,又没有效率
只好拼命堆人力去完成了
b*********1
发帖数: 1250
42
来自主题: Automobile版 - Volvo Debug
昨天开车送娃去参加Halloween party,路上娃很开心的看着儿歌,突然之间屏幕关了
,儿歌也没有了,娃大叫,我捣鼓半天也不知道怎么回事。DVD机不亮,按开机键亮几
秒钟又都灭了,很奇怪。
晚上回家上网查是怎么回事,无奈Volvo配RSE系统的很少,所以信息也不多,找到的几
个都是XC90的。查了一下VIDA,这里面倒是很详细,里面有一部分专门是debug的,里
面描述了这种症状,原因是供电的问题。这个DVD机有两路供电,其中一路断了之后就
会出现这个现象,自检不过,开不了机(这个设计很奇怪,如果完全不亮很容易想到是
供电问题,但是亮几秒钟再灭很难想到是供电的问题,因为有电啊,两路供电,好奇葩
)。
VIDA说明是供电的问题,原因可能是哪里漏电、短路或者是保险丝烧了。保险丝烧了这
个最简单,但问题是:VIDA没!说!保!险!丝!在!哪!查汽车的用户手册,里面保
险盒的介绍非常清楚,但是根!本!没!提!到!RSE!(Volvo的保险盒分三个地方,
分别在发动机舱,副驾驶和后备箱)查RSE的手册,里面说保!险!丝!要!查!阅!
对!应!车!型!的!说!明!书!说了白天,皮球踢来踢去,... 阅读全帖
h********0
发帖数: 440
43
看版上很多人都是很多的C/C++背景
所以问一下你们都是用什么IDE for the development of C/C++ project under Linux
/Mac OS?
不用特别IDE的
都用什么debug? gdb?
多谢先。
e****l
发帖数: 40
44
来自主题: JobHunting版 - 怎么debug memory corruption的问题
Wow, without a debugger? That would be difficult. I'd like to know an answer
too.:)
But under what circumstances did you end up debugging mem corruption without
a debugger?
i**********e
发帖数: 1145
45
来自主题: JobHunting版 - 面试中debug的问题一般会问什么?
How do you detect memory leak?
What is the hardest bug you've found?
when a deadlock happened, how do you debug it? can you recover from the
deadlock without rebooting the system?
and one of the good question:
you have a bug, after you added a printf statement, the bug is gone. why?
http://stackoverflow.com/questions/5945355/one-interview-questi
t*******i
发帖数: 4960
46
来自主题: JobHunting版 - 面试中debug的问题一般会问什么?
能不能推荐些准备debug面试问题的资料??
Many many thanks.
f*******t
发帖数: 7549
47
来自主题: JobHunting版 - 面试中debug的问题一般会问什么?
很少看到debug方面的资料,希望好心人提供一点
w********s
发帖数: 1570
48
2个公司2个选择,第一个就是解决outage, debug product/system,比较low level, c
++/Linux的
第二个Windows GUI/software,很传统的软件开发。
哪个比较有前途?
l*****a
发帖数: 14598
49
什么也不知道的话显然只能一点点debug.
总得看看log,对功能有点了解,大概的定位
然后 set breakpoint+ print log来investigate吧
p*****2
发帖数: 21240
50

debug的4种境界
1. 初级:printf
2. 中级:debugger
3. 高级: 看log+code review
4. 终极: 看behavior+code review
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)