Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
actboy168
/
lua-debug
Public
Notifications
You must be signed in to change notification settings
Fork
105
Star
503
Code
Issues
57
Pull requests
6
Discussions
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Luajit
Jump to bottom
Edit
New page
fesily edited this page
Mar 24, 2022
·
4 revisions
luajit调试器性能问题
使用HOOKCOUNT会导致某些情况下jit失效,强制进入解释模式.所以如果要在生产环境使用,请关闭autoupdate,从C或者lua手动调用update;
luajit和lua的不同
HOOKCALL会在调用c函数之前进入,但是退出C函数的时候不会触发HOOKRET,而是HOOKLINE事件
函数的尾调用不会触发HOOKRET
lua函数中进入尾调用,会被vm直接丢弃当前函数栈信息,因为不会再进来了
debug.info在当前函数是lua Main的情况下,luajit提供真实的行号
currentline
,但是lua是0
Wiki pages
Pages
8
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Debug openresty
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Luajit
luajit调试器性能问题
luajit和lua的不同
Loading
代码说明
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
如何开始调试
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
如何接入其他非lua的lua环境
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
异常设置
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
调试相关的其他问题
Uh oh!
There was an error while loading.
Please reload this page
.
Add a custom sidebar
Clone this wiki locally
You can’t perform that action at this time.