当前位置:网站首页>IDEA调试
IDEA调试
2022-08-01 01:17:00 【Apple-yeran】
IDEA是Java常用的开发工具,这里记录一下IDEA调试相关操作。
1 调试界面各按钮的含义
2 调试过程中修改变量的值
3 快速定位bug
4 实战
可以通过下面的代码实际操作操作,以便更好地掌握。
public class DebugDemo1 {
public static void main(String[] args) {
f1();
f2();
}
private static void f2() {
for (char c = 0; c < 128; c++) {
if (Character.isLowerCase(c)) {
System.out.println(c);
}
}
}
private static void f1() {
System.out.println("one");
System.out.println("two");
System.out.println("three");
System.out.println("four");
System.out.println("five");
}
}
/* 1. 给出 exR1(6) 的返回值: public static String exR1(int n) { if(n <= 0) return ""; return exR1(n-3) + n + exR1(n-2) + n; } 2. 给出 exR2(6) 的返回值: public static String exR2(int n) { String s = exR2(n-3) + n + exR2(n-2) + n; if(n <= 0) return ""; return s; } */
public class DebugDemo2 {
public static void main(String[] args) {
System.out.println(exR1(6)); // 311361142246
// System.out.println(exR2(6)); // StackOverflowError
}
public static String exR1(int n) {
if(n <= 0) return "";
return exR1(n-3) + n + exR1(n-2) + n;
}
public static String exR2(int n) {
String s = exR2(n-3) + n + exR2(n-2) + n;
if(n <= 0) return "";
return s;
}
}
边栏推荐
- 蓝图:杨辉三角排列
- MYSQL transactions
- Classes and Objects: Medium
- Carefully summarize thirteen suggestions to help you create more suitable MySQL indexes
- Compose principle - the view and the principle of two-way data binding
- JS时间戳的意义是什么?知道sql会考虑加时间戳,JS的时间戳用于什么场景?
- LeetCode每日一练 —— 环形链表问题(面试四连问)
- WAASAP WebClient UI页面标签的决定逻辑介绍
- Flink 部署和提交job
- Super like the keyboard made from zero, IT people love it
猜你喜欢
【 】 today in history: on July 31, "brains in vats" the birth of the participant;The father of wi-fi was born;USB 3.1 standard
Summary of MVCC
Kyoto University: Masaki Waga | Dynamic Masking for Reinforcement Learning in Black Box Environments
机器学习初学者可以学哪些实战项目?
VPGNet
MYSQL查询截取优化分析
【数据分析】基于matlab GUI学生成绩管理系统【含Matlab源码 1981期】
RTL8762DK uses DebugAnalyzer (four)
In 2022, the latest eight Chongqing construction members (electrical construction workers) simulation question bank and answers
Redis五种数据类型简介
随机推荐
pycaret源码分析:下载数据集\Lib\site-packages\pycaret\datasets.py
Google "Cloud Developer Quick Checklist"; Tsinghua 3D Human Body Dataset; SenseTime "Universal Vision Framework" open class; Web3 Minimalist Getting Started Guide; Free Books for Efficient Deep Learni
Web API Introduction and Types
RTL8762DK WDG (six)
Matlab/ArcGIS processing GPM global monthly precipitation data
ECCV2022 Workshop | Multi-Object Tracking and Segmentation in Complex Environments
Rasa 3.x 学习系列-使用查找表改进实体提取
Nmap Operation Manual - Full Version
Team of Professor Chen Jianyu of Tsinghua University | Contact Safety Reinforcement Learning Framework Based on Contact-rich Robot Operation
Luogu P3373: 线段树
微信小程序之小程序页面语法
谷歌『云开发者速查表』;清华3D人体数据集;商汤『通用视觉框架』公开课;Web3极简入门指南;高效深度学习免费书;前沿论文 | ShowMeAI资讯日报
Redis五种数据类型简介
Introduction to the five data types of Redis
现代企业架构框架1
sqlserver无法远程连接
OSF一分钟了解敏捷开发模式
Item 36: Specify std::launch::async if asynchronicity is essential.
YOLO怎么入门?怎么实现自己的训练集?
mySql data view