如何调试超出初始断点的子进程(How to debug a child process beyond the initial breakpoint)
我的应用程序有一个启动b.exe并与之通信的a.exe。 顺序是:
- a.exe启动b.exe,并等待来自b.exe的事件,并且超时时间为10秒
- b.exe启动,注册为COM服务器,并发信号通知事件
- a.exe在COM接口中调用一个方法
- 调用b.exe接口方法。 <<<<<我想在这里打破
我想在b.exe中调用接口方法。 目前,我这样做:
- 在windbg下运行a.exe
- 输入
.childdbg 1
- 等到b.exe启动,并且其初始断点中断。
- 在b.exe中设置另一个断点并继续。 我必须在10秒内完成 ,否则a.exe将超时并杀死b.exe。
我设法做到了,但10秒的超时有时会过去。 有没有更好的方法来做到这一点?
My app has a.exe which launches b.exe and communicates with it. The sequence is:
- a.exe launches b.exe, and waits on an event from b.exe with a 10-second timeout
- b.exe starts, registers as a COM server, and signals the event
- a.exe calls a method in the COM interface
- b.exe interface method is called. <<<<< I want to break here
I want to break in b.exe interface method call. Currently, I do it like this:
- Run a.exe under windbg
- Enter
.childdbg 1
- Wait until b.exe starts, and its initial breakpoint breaks.
- Set another breakpoint in b.exe and continue. I must do it within 10 seconds, otherwise a.exe will timeout and kill b.exe.
I managed to do it, but the 10-second timeout sometimes passes. Is there a better way to do it?
原文:https://stackoverflow.com/questions/37906689
最满意答案
你想要像
window.getComputedStyle()
这样的东西,但这不是100%的跨浏览器功能 - 你必须更加努力地工作 。You want something like
window.getComputedStyle()
, but that's not a 100% cross-browser function - you'll have to work a little harder for that.
相关问答
更多-
只需添加box-sizing: border-box; 按钮样式 这将确保宽度和高度属性(以及最小/最大属性)包括内容,填充和边框,但不包括边距。 有关box-sizing更多信息,请查看以下链接https://www.w3schools.com/cssref/css3_pr_box-sizing.asp Just add box-sizing: border-box; in your button style This will make sure that width and height proper ...
-
CSS calc()在边界宽度?(CSS calc() in border-width?)[2022-05-15]
不幸的是, border-width不能使用%值,因为任何%与元素的大小都不相关。 所以,基本上...... 不,你不能使用calc WITH%作为边界宽度,因为它不知道它应该是什么百分比。 Unfortunately, border-width cannot use a % value as any % is NOT related to size of the element. So, basically...NO you can't use calc WITH % for border-width b ... -
以百分比边界的宽度(Width in percent-border)[2023-06-29]
如果你需要IE6 / 7来玩,你可能需要额外的内部元素,或者你可以尝试使用负边距。 我的建议是为您的导航使用一个列表,并将这些边界添加到链接本身,如下所示:毫无疑问, 这 是 更新 ( 在HTML5中,现在可以在 ... -
outline:1px solid white; 这不会增加额外的宽度和高度。 outline:1px solid white; This won't add the extra width and height.
-
你正在考虑box-sizing: border-box 。 规范: http : //www.w3.org/TR/css3-ui/#box-sizing #whatever { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } 实用信息: http : //html5please.com/#box-sizing 浏览器支持: http : ...
-
$(this) ,据我所知, $(this)就是窗口。 您想为$("p")本身设置动画,并且您需要根据其宽度指定您的动画,而不是一般的DOM元素。 还有一个流氓; 在您发送给animate功能的对象中(您可以在开发人员工具控制台中看到类似这样的错误)。 var $element = $("p"); $element.animate({ 'marginLeft': -($element.outerWidth()) }, 4000); body { margin: 0; font-fa ...
-
使用border-image-outset计算边框图像宽度(Calculation of border-image-width with border-image-outset)[2022-05-20]
border-image-width的计算实际上并不依赖于border-image-outset 。 Outset仅指定应绘制边框图像的偏移量 ,并且不会影响边框的宽度。 如规范中所述,当您为border-image-width属性使用纯数值(没有百分号或任何单位)时,计算出的宽度值是border-width的倍数。数字表示相应计算边界宽度的倍数。 (描述中的重点是我的) 因此,对于您的情况,第一个示例的border-image-width为1 * 3px(= 3px),第二个示例为1 * ... -
style对象仅包含存储在元素的HTML style属性中的数据。 这里的元素没有style属性,更不用说border-width声明了。 只有当您的标记看起来像这样时,这才有效:Something here2px的 要拉动计算的CSS样式,您需要使用window.getComputedStyle() : var div = document.getElementsByTagName('div') ...
-
您正在使用flexbox(特别是inline-flex ),因此默认情况下,圆圈将缩小以适合容器元素。 为防止这种情况,请设置flex-shrink: 0或flex: 0 0 auto; 防止这种行为。 .circle { border-radius: 75px; border: 1px solid black; display: inline-flex; flex: 0 0 auto; } http://jsfiddle.net/52VtD/15520/ You're using fle ...
-
你想要像window.getComputedStyle()这样的东西,但这不是100%的跨浏览器功能 - 你必须更加努力地工作 。 You want something like window.getComputedStyle(), but that's not a 100% cross-browser function - you'll have to work a little harder for that.