当前位置:网站首页>pycharm常用快捷键
pycharm常用快捷键
2022-07-26 07:18:00 【凌贤文】
目录
Ctrl+D:快速复制上一行

Ctrl+C:复制当前行

Ctrl+shift+A:万能命令行

Shift两次:查看项目资源
Ctrl+R:快速替换
Ctrl+F是搜索

Ctrl+/:用于注释或取消注释
Ctrl+Alt+L:快速整理代码
(这个非常有用)
Ctrl+Shif+左右键:快速选中,并进行移动

Shift+F10:运行代码

Shift+F9:debug

debug的部分参考:http://t.csdn.cn/OvIH0
debug窗口几个图标分别代表的意思
1.show execution point (F10)
显示当前所有断点
2.step over(F8)
单步调试。若函数A内存在子函数a时,不会进入子函数a内执行单步调试,而是把子函数a当作一个整体,一步执行
3.step into(F7) 单步调试。
若函数A内存在子函数a时,会进入子函数a内执行单步调试。
4.step into my code(Alt + Shift +F7)
执行下一行但忽略libraries(导入库的语句)
5.force step into(Alt + Shift +F7)
执行下一行忽略lib和构造对象等
6.step out(Shift+F8)
当目前执行在子函数a中时,选择该调试操作可以直接跳出子函数a,而不用继续执行子函数a中的剩余代码。并返回上一层函数。
7.run to cursor(Alt +F9)
直接跳到下一个断点,然后接着来看变量查看器。

在调试过程中观察变量的状态。我们需要对其设置一个查看器。在Watches窗口中,单击加号,输入期望查看的变量名称,例如这里输入delay,然后回车。我试了三个变量,这里我们看到这三个变量目前都是没被定义的,我们可以在控制台里给它定义,也可以通过执行下一步,利用代码中的赋值来定义。
可以通过点击这个眼睛图标,将这两个窗口连在一起查看
一般操作步骤就是,设置好断点,debug运行,然后 F8 单步调试,遇到想进入的函数 F7 进去,想出来在 shift + F8,跳过不想看的地方,直接设置下一个断点,然后 F9 过去。
控制台窗口:

边栏推荐
- Redis migrate tool migration error.
- NFT数字藏品系统开发:数字藏品赋予品牌新活力
- Apache DolphinScheduler 2.X保姆级源码解析,中国移动工程师揭秘服务调度启动全流程
- Deep learning learning notes -- solve the problem of slow download of CONDA and pip
- Taishan Office Technology Lecture: page width, height, size and source, and the conversion relationship between inches, centimeters and DPI
- PR字幕制作
- Linux c SQLite database usage
- Differences in the use of function call pointer parameters *p, * & P
- File server fastdfs
- Unity3d-异步加载场景、进度条加载
猜你喜欢

Countdown 2 days! Based on the cross development practice of Apache dolphin scheduler & tidb, you can greatly improve your efficiency from writing to scheduling

Anaconda installation tutorial - hands on installation

Learn browser decoding from XSS payload

Apache Dolphinscheduler3.0.0-beta-1 版本发布,新增FlinkSQL、Zeppelin任务类型

20220725 compensator in automatic control principle

从XSS Playload 学习浏览器解码

anaconda安装教程-手把手教你安装

Leetcode 1184: distance between bus stops

LTS(Light-Task-Scheduler)

Lite actor: lightweight optimization of ark actor concurrency model
随机推荐
Flame diagram analysis Flink backpressure
6、MySQL数据库的备份与恢复
How to expand and repartition the C disk?
What are the basics of getting started with spot silver
Compose text and icon splicing to realize drawableleft or drawableright
Pycharm的相关配置:改字体样式和大小、更改图片背景、更改控制台输出的字体颜色
Opencv learning drawing shapes and text
基于C51实现led流水灯
What are the ways to open the JDBC log of Youxuan database
4、数据的完整性
anaconda安装教程-手把手教你安装
From scratch, we will completely develop an online chess game [Gobang] Based on websocket, and only use dozens of lines of code to complete all the logic.
Analysis of strong tennis cup 2021 PWN competition -- baby_ diary
A guide for you to fully use TS
每周小贴士#142:多参数构造函数和explicit
Hands on practice - teach you how to make an intelligent fish tank with STM32
Contents mismatch at: 08000000H (Flash=FFH Required=00H) ! Too many errors to display !
[yiku] wonderful! This library organization NPM script is simply explosive!
【C语言】你真的了解printf吗?(printf典型易错,强烈建议收藏)
DaemonSet