一种源码显示方法、装置、电子设备以及存储介质

By generating debugging information and path associations, the problem of high debugging difficulty in component-based architecture is solved, enabling accurate location and display from binary files to source code files, thus improving debugging efficiency.

CN119597593BActive Publication Date: 2026-07-17BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAIDU NETCOM SCI & TECH CO LTD
Filing Date
2024-11-15
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In component-based software engineering, debugging only involves viewing binary code, which is difficult to understand and read, increasing the difficulty of debugging.

Method used

By generating debugging information, the location of errors in the binary file is determined, and the path association is used to map to the path of the source code file to display the source code to be debugged.

Benefits of technology

It enables locating source code files from binary files, reducing debugging difficulty and improving debugging efficiency for developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597593B_ABST
    Figure CN119597593B_ABST
Patent Text Reader

Abstract

本公开提供了一种源码显示方法、装置、电子设备以及存储介质,涉及计算机技术领域,尤其涉及数据处理技术领域。具体实现方案为:基于运行软件工程生成的第一调试信息,确定以二进制形式接入软件工程第一组件的二进制文件中的报错位置;基于第一调试信息中记录的、生成二进制文件时使用的第一组件的源码文件的第一路径和预先生成的第一源码文件的本地路径和第一路径的路径关联关系,确定软件工程本地存储的源码文件中第一组件的第一源码文件的第二路径;将第一路径映射至第二路径;基于映射结果和报错位置,在第一源码文件中定位待调试源码,显示待调试源码。应用本公开实施例提供的方案可以实现显示二进制文件中错误位置对应的源码。
Need to check novelty before this filing date? Find Prior Art