- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有 2 台带有 Asterisk 的服务器:192.168.241.98 和 192.168.243.112。
第一个有有效的注册:
register => wagateway:qwerty@192.168.243.112:5060
CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.243.112:5060 N wagateway 105 Registered Wed, 26 Jun 2013 16:42:42
CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status Description
wacaller/wacaller 192.168.242.235 D a 5062 OK (13 ms)
wagateway/s 192.168.241.98 D a 5060 OK (1 ms)
[watest]
exten => 123123123,1,NoOp()
exten => 123123123,n,Dial(SIP/wagateway)
exten => 123123123,n,Hangup()
[wacaller]
type=friend
secret=qwerty
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw
[wagateway]
type=friend
secret=qwerty
fromuser=wagateway
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw
[Jun 27 09:27:54] WARNING[20447][C-0000000b]: chan_sip.c:23213 handle_response_invite: Received response: "Forbidden" from '"WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae'
<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412
v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (16 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062
<--- Reliably Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4f84bef0"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)
<--- SIP read from UDP:192.168.242.235:5062 --->
ACK sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 ACK
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Authorization: Digest username="wacaller", realm="asterisk", nonce="4f84bef0", uri="sip:123123123@192.168.243.112", response="53cdb5b8c1822c80870faab15a6dc6d2", algorithm=MD5
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412
v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (17 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 4
Found RTP audio format 18
Found RTP audio format 9
Found RTP audio format 97
Found RTP audio format 2
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G723 for ID 4
Found audio description format G729 for ID 18
Found audio description format G722 for ID 9
Found audio description format iLBC for ID 97
Found audio description format G726-32 for ID 2
Found audio description format telephone-event for ID 101
Capabilities: us - (gsm|ulaw|alaw|h263|testlaw), peer - audio=(g723|ulaw|alaw|g726|g729|ilbc|g722)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.242.235:5004
Looking for 123123123 in watest (domain 192.168.243.112)
list_route: route/path hop: <sip:wacaller@192.168.242.235:5062>
<--- Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123123123@192.168.243.112:5060>
Content-Length: 0
<------------>
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326
v=0
o=root 2059284449 2059284449 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="603b4bbf"
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0
---
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Authorization: Digest username="s", realm="asterisk", algorithm=MD5, uri="sip:s@192.168.241.98:5060", nonce="603b4bbf", response="059cae207fb81fb76ea9061f71258895"
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326
v=0
o=root 2059284449 2059284450 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0
---
[Jun 26 16:31:48] WARNING[20447][C-0000000a]: chan_sip.c:23213 handle_response_invite: Received response: "Forbidden" from '"WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a'
Scheduling destruction of SIP dialog '758899861bee35980dadd87912ef805a@192.168.243.112:5060' in 6400 ms (Method: INVITE)
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)
<--- SIP read from UDP:192.168.243.112:5060 --->
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK3159e4b1;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Date: Thu, 27 Jun 2013 01:27:54 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326
v=0
o=root 1301894386 1301894386 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 15838 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
<------------->
--- (14 headers 14 lines) ---
Sending to 192.168.243.112:5060 (NAT)
Using INVITE request as basis request - 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
Found peer 'wagateway' for 'wagateway' from 192.168.243.112:5060
<--- Reliably Transmitting (no NAT) to 192.168.243.112:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK3159e4b1;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae
To: <sip:s@192.168.241.98:5060>;tag=as671c0824
Call-ID: 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
CSeq: 102 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="0b63a660"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '5dc37059030845ca3d974c513993876d@192.168.243.112:5060' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:192.168.243.112:5060 --->
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK3159e4b1;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae
To: <sip:s@192.168.241.98:5060>;tag=as671c0824
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
<--- SIP read from UDP:192.168.243.112:5060 --->
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK40e56655;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
CSeq: 103 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Authorization: Digest username="s", realm="asterisk", algorithm=MD5, uri="sip:s@192.168.241.98:5060", nonce="0b63a660", response="537f37fe2fb8d0fd40733cb190ea70c8"
Date: Thu, 27 Jun 2013 01:27:54 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326
v=0
o=root 1301894386 1301894387 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 15838 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
<------------->
--- (15 headers 14 lines) ---
Sending to 192.168.243.112:5060 (no NAT)
Using INVITE request as basis request - 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
Found peer 'wagateway' for 'wagateway' from 192.168.243.112:5060
<--- Reliably Transmitting (no NAT) to 192.168.243.112:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK40e56655;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae
To: <sip:s@192.168.241.98:5060>;tag=as671c0824
Call-ID: 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
CSeq: 103 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '5dc37059030845ca3d974c513993876d@192.168.243.112:5060' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:192.168.243.112:5060 --->
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK40e56655;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae
To: <sip:s@192.168.241.98:5060>;tag=as671c0824
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 5dc37059030845ca3d974c513993876d@192.168.243.112:5060
CSeq: 103 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
dev-ast*CLI> sip set debug off
SIP Debugging Disabled
最佳答案
您遇到的另一个问题是循环,您将调用发送到您的网关,当调用到达您的网关时,您再次发送到网关,这就是为什么当您调用 SIP/wagateway(在wagateway)您没有分机,您的调用方式是客户端--->网关--->网关,尝试将您的分机更改为watest,如下所示
[watest]
exten => 123123123,1,NoOp(Call comming from ${CALLERID(all)})
exten => 123123123,n,Answer()
exten => 123123123,n,PlayBack(tt-monkeys)
exten => 123123123,n,Hangup()
关于debugging - Asterisk 到 Asterisk 调用 : 403 Forbidden,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17333642/
Debug.Assert/Debug.Fail 是否自动条件编译#if "DEBUG"?或者它是否更像是没有附加调试器(即使在发行版中)它什么也做不了?如果是这样,将它们留在您的代码中是否会对性能产生
我有一个应用程序,我配置了多个路由,一切正常,直到我配置的最新路由不起作用(显示错误的屏幕)。 我的问题是如何进行调试?没有打印错误日志,我无法找到如何获取有关正在发生的事情的更多日志。我也不知道从哪
我正在 Intellij 中调试代码。我使用 maven 来构建项目,并且在本地 .m2 存储库中有该项目的各种版本。当我开始调试时,Intellij 继续从项目的前一个快照中选择旧版本的代码。如何让
我喜欢在业余时间进行一些 TiVo 黑客事件 - TiVo 使用 Linux 变体和 TCL 。我想在我的 Windows 笔记本电脑上编写 TCL 脚本,测试它们,然后将它们通过 FTP 传输到我的
我有 ASM 代码,它使用循环语法打印 abc 。这是我的代码 ;abc.com .model small .code org 100h start: mov ah, 02h mov
我在 Debugging .net 2.0 Applications 中看到了以下代码 [Conditional("DEBUG")] void AssertTableExists() { #i
在大型项目中哪个更好用,为什么: #if DEBUG public void SetPrivateValue(int value) { ... } #endif 或 [System.D
我似乎无法让调试器运行。调试运行图标变灰,菜单选项丢失。 这只是main的情况,我可以很好地调试单元测试。 类似的问题提到了项目结构,但我看不出有什么不对: $GOPATH/src/foo.bar.c
只是想知道我的浏览器一直询问我是否想在每次点击浏览器链接刷新时停止调试非常烦人,因为这会减慢开发时间。 有没有其他人遇到过这个? 干杯 最佳答案 更新的答案,现在找到根本原因 经过两年看到这个错误时断
我正在尝试包含调试/发布相关编译器标志,例如: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x -Wall -DUSE_BOOST") set
当我尝试使用 debug.phonegap.com 调试我的phonegap 应用程序时遇到问题。 我把这个视频放在 HTML 文档的头部 在启动应用程序之前,我从 build.phonegap.
GDB 7.0以后,支持反向调试。 生成核心转储时,我可以使用反向调试命令吗? 我怎样才能做到这一点? 最佳答案 你不能。核心文件是某个时间点程序状态的快照。要在该状态下向后移动,您需要程序状态的较早
首先:如果之前有人问过这个问题,我很抱歉。我是一个熟练的谷歌用户,但这确实让我难住了,我找不到任何东西。 我目前正在编写一个小型库,我想对其进行调试。我还希望能够完全关闭调试,并且编译后的代码不应包含
我想在 tomcat 中将级别日志记录设置为 DEBUG,但在控制台中仍然只有 INFO 和 WARN 输出。谁能告诉我哪里出了问题? 我的 C:\tomcat\logging.properties:
我已经开始像这样使用定义类了: internal sealed class Defines { /// /// This constant is set to true iff th
在使用编译器指令时,我不清楚以下两个代码片段中哪一个是正确/首选的,以及为什么。似乎我见过的大多数开发人员和开源项目都使用第一种,但我也看到第二种也经常使用。 #ifdef DEBUG [self d
我遇到错误,无法完成构建。我搜索了 Stackoverflow 和 Github。我已经尝试了很多方法,但我无法修复。请帮忙。 (1) 在 [src/nullnull/debug, src/debug
我刚刚意识到,使用 TFS 部署时,DEBUG 处理器指令仍然有效,有没有办法更改 TFS/Azure 网站或构建定义中的设置,而不是在本地解决方案配置? 我仍然希望本地解决方案保持调试状态,只有部署
我有一段代码在 VS2008,C++ 中以 Debug模式运行。 问题是,当我逐行调试代码时,在代码的一个非常奇怪的地方,它崩溃并说: debug assertion faild. Expressio
我有一个简单的 Xamarin.Forms 项目,我在 Visual Studio 中运行,使用 iphone 模拟器。我在 App.cs 中有以下代码: protected override voi
我是一名优秀的程序员,十分优秀!