CN112740187A - 调试程序的方法和系统 - Google Patents

调试程序的方法和系统 Download PDF

Info

Publication number
CN112740187A
CN112740187A CN201880097908.5A CN201880097908A CN112740187A CN 112740187 A CN112740187 A CN 112740187A CN 201880097908 A CN201880097908 A CN 201880097908A CN 112740187 A CN112740187 A CN 112740187A
Authority
CN
China
Prior art keywords
function
stack
thread
debugging
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201880097908.5A
Other languages
English (en)
Inventor
唐玮玮
沈灿泉
张丰伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN112740187A publication Critical patent/CN112740187A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请提供了一种调试程序的方法和系统。本申请实施例通过在函数的栈帧中增加用于标识该函数所属的线程的标识字段,当第一处理模块上运行的第一函数调用第二函数时,将该第一函数当前的栈帧保存到堆栈缓冲区中,使得堆栈缓冲区中保存的第一函数的栈帧与该第一函数所属的线程相关联,实现对同一个线程的堆栈信息的记录,基于此本申请实施例能够在调试过程中记录业务的端到端的流向,提高开发者定位问题的效率。

Description

PCT国内申请,说明书已公开。

Claims (10)

  1. PCT国内申请,权利要求书已公开。
CN201880097908.5A 2018-10-09 2018-10-09 调试程序的方法和系统 Pending CN112740187A (zh)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/109518 WO2020073200A1 (zh) 2018-10-09 2018-10-09 调试程序的方法和系统

Publications (1)

Publication Number Publication Date
CN112740187A true CN112740187A (zh) 2021-04-30

Family

ID=70163764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880097908.5A Pending CN112740187A (zh) 2018-10-09 2018-10-09 调试程序的方法和系统

Country Status (2)

Country Link
CN (1) CN112740187A (zh)
WO (1) WO2020073200A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672458A (zh) * 2021-08-18 2021-11-19 北京基调网络股份有限公司 一种应用程序的监测方法、电子设备及存储介质
CN115705294A (zh) * 2021-08-12 2023-02-17 华为技术有限公司 用于获取函数调用信息的方法、装置、电子设备和介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446918B (zh) * 2008-12-10 2011-12-28 中兴通讯股份有限公司 一种实现用户态调试器调试单个函数的方法及系统
US8880952B1 (en) * 2012-03-14 2014-11-04 Emc Corporation Generic and extensible provider debug interface
CN104216764B (zh) * 2014-07-31 2017-09-12 昆明理工大学 一种基于多线程嵌入式系统并行程序跟踪与回放方法
CN104252402B (zh) * 2014-09-05 2018-04-27 深圳创维数字技术有限公司 一种程序调试方法及装置
CN106802785B (zh) * 2016-12-13 2019-07-09 北京华为数字技术有限公司 一种栈解析方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115705294A (zh) * 2021-08-12 2023-02-17 华为技术有限公司 用于获取函数调用信息的方法、装置、电子设备和介质
CN113672458A (zh) * 2021-08-18 2021-11-19 北京基调网络股份有限公司 一种应用程序的监测方法、电子设备及存储介质
CN113672458B (zh) * 2021-08-18 2022-09-09 北京基调网络股份有限公司 一种应用程序的监测方法、电子设备及存储介质

Also Published As

Publication number Publication date
WO2020073200A1 (zh) 2020-04-16

Similar Documents

Publication Publication Date Title
US10621068B2 (en) Software code debugger for quick detection of error root causes
US10013332B2 (en) Monitoring mobile application performance
US7950001B2 (en) Method and apparatus for instrumentation in a multiprocessing environment
US8370816B2 (en) Device, method and computer program product for evaluating a debugger script
US9355003B2 (en) Capturing trace information using annotated trace output
US8752020B2 (en) System and process for debugging object-oriented programming code leveraging runtime metadata
US10545852B2 (en) Diagnostics of state transitions
US9367427B2 (en) Embedding and executing trace functions in code to gather trace data
US20160328314A1 (en) System and method for providing code coverage
CN107025167B (zh) 在处理器追踪日志中使用编译器类型信息进行数据流分析的方法和设备
US20130275951A1 (en) Race detection for web applications
US20050246691A1 (en) Debugging tool for debugging multi-threaded programs
EP3921734B1 (en) Using historic execution data to visualize tracepoints
CN104077220A (zh) Mips架构操作系统内核的调试方法和装置
Azim et al. Dynamic slicing for android
CN115357515B (zh) 一种多核系统的调试方法、装置、计算机设备及存储介质
CN112740187A (zh) 调试程序的方法和系统
Li et al. Effectively manifesting concurrency bugs in android apps
Sundaram et al. Diagnostic tracing for wireless sensor networks
CN112445855A (zh) 用于图形处理器芯片的可视化分析方法和可视化分析装置
CN108197005B (zh) Ios应用的底层运行性能监测方法、介质、设备及系统
CN114238107A (zh) 一种跟踪调试方法、系统及计算机可读存储介质
CN110727577B (zh) 嵌入式系统软件中概率复现问题的调试方法、系统及介质
CN112328491A (zh) 追踪消息的输出方法、电子设备及存储介质
Prada-Rojas et al. Observation tools for debugging and performance analysis of embedded linux applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination