Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
td-debug
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Darciaux Yoann
td-debug
Commits
98a75f0b
Commit
98a75f0b
authored
1 month ago
by
Darciaux Yoann
Browse files
Options
Downloads
Patches
Plain Diff
Exercice 2 et 3 + MaJ du compte rendu
parent
08b5f96c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
compte_rendu_debug.txt
+10
-0
10 additions, 0 deletions
compte_rendu_debug.txt
exo2.ts
+11
-0
11 additions, 0 deletions
exo2.ts
exo3.ts
+11
-0
11 additions, 0 deletions
exo3.ts
with
32 additions
and
0 deletions
compte_rendu_debug.txt
+
10
−
0
View file @
98a75f0b
...
@@ -2,3 +2,13 @@ Exercice 1:
...
@@ -2,3 +2,13 @@ Exercice 1:
placer point d'arrêt a la ligne 4 puis f5 pour suivre la valeur de j,
placer point d'arrêt a la ligne 4 puis f5 pour suivre la valeur de j,
dans cette exercice, j'ai appris le débogage avec point d'arrêt ainsi qu'à suivre une variable dans une boucle
dans cette exercice, j'ai appris le débogage avec point d'arrêt ainsi qu'à suivre une variable dans une boucle
Exercice 2:
j'ai modifier la fonction pour rajouter un tableau et affecter j à tab[i], j'ai placer mon poit d'arrêt à la ligne 6 puis f5
dans cette exercice, j'ai pu visualiser le remplissage du tableau a chaque itération grâce au débogage.
Exercice 3:
j'ai placer 3 points d'arrêt: ligne 2, ligne 5 et ligne 11 les valeurs par points d'arrêt sont:
ligne 2: x = 10, y = 20
ligne 5: x = 20, y = 10
ligne 11: x = 10, y = 20,
On pourrais donc appeler cette fonction "echange de valeur" car c'est ce qu'il fait.
This diff is collapsed.
Click to expand it.
exo2.ts
0 → 100644
+
11
−
0
View file @
98a75f0b
function
deb1
():
number
{
let
j
=
200
;
let
tab
:
number
[]
=
[];
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
j
-=
10
;
tab
[
i
]
=
j
;
}
console
.
log
(
tab
);
return
j
;
}
console
.
log
(
deb1
());
This diff is collapsed.
Click to expand it.
exo3.ts
0 → 100644
+
11
−
0
View file @
98a75f0b
function
deb2
(
x
:
number
,
y
:
number
):
void
{
const
tmp
=
y
;
y
=
x
;
x
=
tmp
;
console
.
log
(
x
,
y
);
}
let
x
=
10
;
let
y
=
20
;
deb2
(
x
,
y
);
console
.
log
(
x
,
y
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment